/* ── Trace4.eu Landing Page Styles ── */
:root {
    --navy: #0A3D62;
    --blue: #1B5E96;
    --ice: #E8F0F8;
    --ice-dark: #D0E1F0;
    --white: #FFFFFF;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Section spacing ── */
.section { padding: 5rem 0; }
.section--alt { background: rgba(232, 240, 248, 0.5); }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: rgba(10, 61, 98, 0.7); max-width: 700px; margin: 0 auto 3rem; font-size: 1.125rem; }

/* ── Navbar ── */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ice-dark); z-index: 100;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.navbar__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.navbar__links { display: flex; align-items: center; gap: 1.5rem; }
.navbar__link { font-size: 0.875rem; font-weight: 500; color: rgba(10,61,98,0.8); transition: color 0.2s; }
.navbar__link:hover { color: var(--navy); }
.navbar__cta {
    display: inline-flex; align-items: center; padding: 0.5rem 1.25rem;
    border-radius: 0.5rem; background: var(--navy); color: white;
    font-size: 0.875rem; font-weight: 600; transition: background 0.2s;
}
.navbar__cta:hover { background: var(--blue); }
.navbar__toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 0.5rem; }
.navbar__mobile { display: none; background: white; border-top: 1px solid var(--ice-dark); padding: 1rem; }
.navbar__mobile.open { display: block; }
.navbar__mobile a { display: block; padding: 0.75rem 0; color: rgba(10,61,98,0.8); font-weight: 500; border-bottom: 1px solid var(--ice); }
.navbar__mobile .navbar__cta { display: block; text-align: center; margin-top: 0.75rem; padding: 0.75rem; border-bottom: none; color: white; }

@media (max-width: 768px) {
    .navbar__links { display: none; }
    .navbar__toggle { display: block; }
}

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 4rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
    color: white; text-align: center;
}
.hero h1 { font-size: clamp(1.75rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 span { color: var(--ice); }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: 0.8; max-width: 600px; margin: 0 auto 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 0.5rem; background: white; color: var(--navy);
    font-weight: 700; font-size: 1.125rem; transition: background 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--ice); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 0.5rem; border: 2px solid rgba(255,255,255,0.4);
    color: white; font-weight: 600; font-size: 1.125rem; transition: background 0.2s;
    background: transparent; cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.hero__visual { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero__visual-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.hero__visual-label { font-size: 0.75rem; opacity: 0.6; }
.hero__visual-arrow { opacity: 0.4; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.badge { padding: 0.25rem 0.75rem; border-radius: 9999px; background: rgba(255,255,255,0.1); font-size: 0.875rem; opacity: 0.7; }

/* ── Card grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
    border-radius: 0.75rem; border: 1px solid var(--ice-dark);
    padding: 1.5rem; background: white; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card--alt { background: rgba(232,240,248,0.4); }
.card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card__title { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.card__text { color: rgba(10,61,98,0.7); font-size: 0.875rem; line-height: 1.6; }

/* ── Timeline ── */
.timeline { display: flex; justify-content: space-between; padding: 2rem 1rem; overflow-x: auto; gap: 0; min-width: 0; }
.timeline__item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 130px; position: relative; }
.timeline__dot {
    width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 0.875rem; font-weight: 700; z-index: 1; color: white;
}
.timeline__dot--red { background: #ef4444; }
.timeline__dot--orange { background: #f97316; }
.timeline__dot--yellow { background: #eab308; }
.timeline__dot--gray { background: #d1d5db; color: #374151; }
.timeline__year { font-weight: 700; font-size: 1.125rem; margin-top: 0.75rem; }
.timeline__label { font-size: 0.75rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; background: var(--ice); margin-top: 0.25rem; }
.timeline__desc { font-size: 0.8125rem; color: rgba(10,61,98,0.6); margin-top: 0.5rem; max-width: 140px; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; margin-bottom: 3rem; }
.step__num {
    width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--navy); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
    margin: 0 auto 1rem;
}
.step__title { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.step__text { color: rgba(10,61,98,0.7); font-size: 0.875rem; }

/* ── Comparison table ── */
.comparison-wrapper { overflow-x: auto; }
.comparison { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.875rem; }
.comparison th, .comparison td { padding: 0.75rem 1rem; text-align: center; }
.comparison th { font-weight: 700; }
.comparison th:first-child, .comparison td:first-child { text-align: left; font-weight: 600; }
.comparison th.highlight { background: var(--ice); border-radius: 0.5rem 0.5rem 0 0; }
.comparison td.highlight { background: rgba(232,240,248,0.6); font-weight: 600; }
.comparison tbody tr:nth-child(even) { background: rgba(232,240,248,0.3); }
.comparison__callout {
    margin-top: 2.5rem; background: var(--navy); color: white; border-radius: 0.75rem;
    padding: 1.5rem 2rem; text-align: center; font-size: 1.125rem; font-weight: 500;
}

/* ── Sectors ── */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.sector-card {
    background: white; border: 1px solid var(--ice-dark); border-radius: 0.75rem;
    padding: 1.25rem; cursor: pointer; transition: box-shadow 0.2s; width: 100%;
    text-align: left; font-family: inherit; color: inherit; font-size: inherit;
}
.sector-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sector-card__header { display: flex; align-items: flex-start; gap: 0.75rem; }
.sector-card__emoji { font-size: 1.5rem; flex-shrink: 0; }
.sector-card__info { flex: 1; min-width: 0; }
.sector-card__name { font-weight: 700; font-size: 0.875rem; }
.sector-card__deadline { font-size: 0.75rem; color: rgba(10,61,98,0.6); margin-top: 0.125rem; }
.sector-card__status { font-size: 0.75rem; font-weight: 600; }
.sector-card__chevron { width: 1.25rem; height: 1.25rem; color: rgba(10,61,98,0.4); transition: transform 0.2s; flex-shrink: 0; margin-top: 0.25rem; }
.sector-card__chevron--open { transform: rotate(180deg); }
.sector-card__fields { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ice-dark); }
.sector-card__fields-label { font-size: 0.75rem; font-weight: 600; color: rgba(10,61,98,0.5); margin-bottom: 0.5rem; }
.sector-card__field { font-size: 0.875rem; color: rgba(10,61,98,0.7); display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.25rem; }
.sector-card__field::before { content: "•"; color: var(--blue); flex-shrink: 0; margin-top: 0.1rem; }

/* ── Pricing ── */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; }
.pricing-toggle__label { font-size: 0.875rem; font-weight: 500; }
.pricing-toggle__label--active { color: var(--navy); }
.pricing-toggle__label--inactive { color: rgba(10,61,98,0.5); }
.pricing-toggle__switch {
    position: relative; width: 3.5rem; height: 1.75rem; border-radius: 9999px;
    background: rgba(10,61,98,0.3); cursor: pointer; border: none; transition: background 0.2s;
}
.pricing-toggle__switch--active { background: var(--navy); }
.pricing-toggle__switch-dot {
    position: absolute; top: 0.125rem; left: 0.125rem;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.pricing-toggle__switch--active .pricing-toggle__switch-dot { transform: translateX(1.75rem); }
.pricing-toggle__discount { font-size: 0.75rem; font-weight: 700; color: #16a34a; }

.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.pricing-card {
    border: 1px solid var(--ice-dark); border-radius: 1rem; padding: 1.5rem 2rem;
    display: flex; flex-direction: column; position: relative;
}
.pricing-card--recommended { border-color: var(--navy); box-shadow: 0 4px 24px rgba(10,61,98,0.15); ring: 2px solid rgba(10,61,98,0.2); }
.pricing-card__badge {
    position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
    background: var(--navy); color: white; font-size: 0.75rem; font-weight: 700;
    padding: 0.25rem 1rem; border-radius: 9999px; white-space: nowrap;
}
.pricing-card__name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-card__price { font-size: 2.5rem; font-weight: 800; }
.pricing-card__period { font-size: 0.875rem; color: rgba(10,61,98,0.6); }
.pricing-card__saving { font-size: 0.75rem; font-weight: 600; color: #16a34a; margin-top: 0.25rem; }
.pricing-card__features { list-style: none; margin: 1.5rem 0; flex: 1; }
.pricing-card__feature { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: rgba(10,61,98,0.8); margin-bottom: 0.75rem; }
.pricing-card__check { color: #22c55e; flex-shrink: 0; margin-top: 0.125rem; }
.pricing-card__ideal { font-size: 0.75rem; color: rgba(10,61,98,0.5); font-style: italic; margin-bottom: 1rem; }
.pricing-card__cta {
    display: block; text-align: center; padding: 0.75rem; border-radius: 0.5rem;
    font-weight: 600; transition: background 0.2s; border: none; cursor: pointer; font-size: 1rem;
}
.pricing-card__cta--primary { background: var(--navy); color: white; }
.pricing-card__cta--primary:hover { background: var(--blue); }
.pricing-card__cta--secondary { background: var(--ice); color: var(--navy); }
.pricing-card__cta--secondary:hover { background: var(--ice-dark); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; margin-bottom: 3rem; }
.stat__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.stat__value--navy { color: var(--navy); }
.stat__value--red { color: #dc2626; }
.stat__value--green { color: #16a34a; }
.stat__label { font-size: 0.875rem; color: rgba(10,61,98,0.6); margin-top: 0.5rem; }

.scenario-box {
    background: white; border: 1px solid var(--ice-dark); border-radius: 0.75rem;
    padding: 1.5rem 2rem; max-width: 700px; margin: 0 auto;
}

/* ── About ── */
.about__text { color: rgba(10,61,98,0.7); font-size: 1.125rem; line-height: 1.7; max-width: 600px; margin: 0 auto 3rem; text-align: center; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.pillar__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy); }
.pillar__label { font-size: 0.875rem; color: rgba(10,61,98,0.6); margin-top: 0.25rem; }

/* ── Contact form ── */
.contact-form {
    background: white; border: 1px solid var(--ice-dark); border-radius: 0.75rem;
    padding: 1.5rem 2rem; max-width: 600px; margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.form-label .required { color: #ef4444; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.625rem 1rem; border: 1px solid var(--ice-dark);
    border-radius: 0.5rem; font-size: 0.875rem; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,94,150,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-submit {
    width: 100%; padding: 0.75rem; border-radius: 0.5rem; background: var(--navy);
    color: white; font-weight: 700; font-size: 1.125rem; border: none; cursor: pointer;
    transition: background 0.2s;
}
.form-submit:hover { background: var(--blue); }
.form-note { text-align: center; font-size: 0.75rem; color: rgba(10,61,98,0.5); margin-top: 0.75rem; }
.form-note a { color: var(--blue); font-weight: 600; }
.form-success { text-align: center; padding: 2rem; }
.form-success__icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success__text { color: rgba(10,61,98,0.7); }

/* ── Footer ── */
.footer { background: var(--navy); color: white; padding: 3rem 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.footer__by { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer__heading { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer__link { display: block; color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer__link:hover { color: white; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ── Quote ── */
.quote { text-align: center; color: rgba(10,61,98,0.7); font-size: 1.125rem; font-weight: 500; font-style: italic; max-width: 600px; margin: 3rem auto 0; }

/* ── Blazor specifics ── */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ── Legal pages ── */
.legal-page { padding: 7rem 0 4rem; }
.legal-page__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.legal-page__updated { font-size: 0.875rem; color: rgba(10,61,98,0.5); margin-bottom: 2.5rem; }
.legal-page__content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.legal-page__content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal-page__content p { color: rgba(10,61,98,0.8); line-height: 1.7; margin-bottom: 0.75rem; max-width: 800px; }
.legal-page__content ul { margin: 0.5rem 0 1rem 1.5rem; max-width: 800px; }
.legal-page__content li { color: rgba(10,61,98,0.8); line-height: 1.7; margin-bottom: 0.375rem; }
.legal-page__content a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal-page__content a:hover { color: var(--navy); }
.legal-page__table-wrapper { overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal-page__table { border-collapse: collapse; font-size: 0.875rem; width: 100%; max-width: 700px; }
.legal-page__table th, .legal-page__table td { padding: 0.625rem 1rem; text-align: left; border-bottom: 1px solid var(--ice-dark); }
.legal-page__table th { font-weight: 700; background: var(--ice); }

/* ── Cookie consent banner ── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(10,61,98,0.97); backdrop-filter: blur(8px);
    color: white; padding: 1.25rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner__content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 280px; }
.cookie-banner__text strong { display: block; margin-bottom: 0.375rem; font-size: 1rem; }
.cookie-banner__text p { font-size: 0.875rem; opacity: 0.85; line-height: 1.5; margin: 0; color: white; }
.cookie-banner__text a { color: var(--ice); font-weight: 600; text-decoration: underline; }
.cookie-banner__text a:hover { color: white; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner__btn {
    padding: 0.625rem 1.5rem; border-radius: 0.5rem; font-weight: 600;
    font-size: 0.875rem; cursor: pointer; border: none; transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.cookie-banner__btn--accept { background: white; color: var(--navy); }
.cookie-banner__btn--accept:hover { background: var(--ice); }
.cookie-banner__btn--reject { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.cookie-banner__btn--reject:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 640px) {
    .cookie-banner__content { flex-direction: column; align-items: stretch; gap: 1rem; }
    .cookie-banner__actions { justify-content: stretch; }
    .cookie-banner__btn { flex: 1; text-align: center; }
}
