/* UGC Baltic — site styles
   No external fonts, images or scripts. System font stack only. */

:root {
    --blue: #1E3A8A;
    --blue-bright: #2563EB;
    --teal: #14B8A6;          /* accent fills (always paired with --on-teal text) */
    --teal-light: #2DD4BF;
    --teal-dark: #0F766E;     /* teal used as text on white (5.4:1) */
    --on-teal: #0B1B3F;       /* text on teal fills (6.8:1) */
    --ink: #1F2937;
    --muted: #4B5563;
    --soft: #F3F4F6;
    --white: #FFFFFF;
    --line: #E5E7EB;
    --field-line: #6B7280;
    --error: #B91C1C;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--white);
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset,
legend {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

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

a {
    color: var(--blue);
    text-underline-offset: 2px;
}

a:hover {
    color: var(--teal-dark);
}

[hidden] {
    display: none !important;
}

/* Focus states */
:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 2px;
}

.site-header :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--white);
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--white);
    color: var(--blue);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 860px;
}

.section {
    padding: 80px 0;
}

.section--soft {
    background-color: var(--soft);
}

.section--tight {
    padding: 48px 0;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--blue);
}

.section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
    font-size: 18px;
    color: var(--muted);
}

.section h2 + .grid,
.section h2 + .steps,
.section h2 + .packages {
    margin-top: 44px;
}

.section h2 + .card {
    margin-top: 32px;
}

.center {
    text-align: center;
}

.stack > * + * {
    margin-top: 16px;
}

/* Header */
.site-header {
    background-color: var(--blue);
    color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.logo:hover {
    color: var(--white);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 6px 22px;
}

.nav-menu a {
    display: inline-block;
    padding: 6px 0;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--white);
    border-bottom-color: var(--teal-light);
}

.nav-menu a.nav-cta {
    padding: 8px 16px;
    background-color: var(--teal);
    color: var(--on-teal);
    font-weight: 700;
    border-radius: 8px;
    border-bottom: 0;
}

.nav-menu a.nav-cta:hover {
    background-color: var(--teal-light);
    color: var(--on-teal);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
    color: var(--white);
    padding: 96px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 36px;
}

.hero-cta,
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 15px;
}

.hero a:not(.btn),
.cta-band a:not(.btn) {
    color: var(--white);
}

/* Inner page heading */
.page-hero {
    padding: 64px 0 24px;
    text-align: center;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--muted);
}

.page-hero p + p {
    margin-top: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--on-teal);
}

.btn-primary:hover {
    background-color: var(--teal-light);
    border-color: var(--teal-light);
    color: var(--on-teal);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--blue);
    border-color: var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

.hero .btn-secondary,
.cta-band .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover,
.cta-band .btn-secondary:hover {
    background-color: var(--white);
    color: var(--blue);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Grids and cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 28px;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.card {
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card > * + * {
    margin-top: 12px;
}

.card h3 {
    color: var(--blue);
    margin-bottom: 0;
}

.card h3:not(:first-child) {
    margin-top: 28px;
}

.card ol,
.card ul:not(.checklist):not(.crosslist) {
    padding-left: 22px;
}

.card--plain {
    box-shadow: none;
    background-color: var(--soft);
    border-color: var(--soft);
}

.section--soft .card--plain {
    background-color: var(--white);
    border-color: var(--line);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 32px;
    list-style: none;
    counter-reset: step;
}

.step {
    counter-increment: step;
    text-align: center;
}

.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background-color: var(--teal);
    color: var(--on-teal);
    font-size: 24px;
    font-weight: 700;
}

.step > * + * {
    margin-top: 10px;
}

.steps--detailed {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
    gap: 24px;
}

.steps--detailed .step {
    text-align: left;
    position: relative;
    padding: 28px 28px 28px 100px;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.steps--detailed .step::before {
    position: absolute;
    left: 24px;
    top: 26px;
    margin: 0;
}

.steps--detailed .step ul {
    padding-left: 20px;
}

.step-timing {
    color: var(--teal-dark);
    font-weight: 600;
}

/* Packages */
.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 28px;
    align-items: stretch;
}

.package {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
}

.package--featured {
    border: 2px solid var(--teal);
}

.package-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background-color: var(--teal);
    color: var(--on-teal);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.package h3 {
    font-size: 26px;
    color: var(--blue);
    margin-bottom: 6px;
}

.package-tagline {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 16px;
}

.package-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--teal-dark);
    line-height: 1.2;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.package-price span {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
}

.checklist,
.crosslist {
    list-style: none;
}

.checklist li,
.crosslist li {
    position: relative;
    padding: 6px 0 6px 28px;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 2px;
    top: 6px;
    color: var(--teal-dark);
    font-weight: 700;
}

.crosslist li::before {
    content: "\2013";
    position: absolute;
    left: 4px;
    top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.package .checklist {
    margin-bottom: 20px;
}

.package-bestfor,
.package-note {
    margin-bottom: 20px;
    font-size: 15px;
}

.package-note {
    padding: 10px 12px;
    background-color: var(--soft);
    border-radius: 8px;
}

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

.pricing-note {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    color: var(--ink);
}

.pricing-note strong {
    color: var(--blue);
}

.text-link {
    font-weight: 600;
    font-size: 18px;
}

/* Notice boxes */
.notice {
    padding: 16px 20px;
    background-color: #EFF6FF;
    border-left: 4px solid var(--blue);
    border-radius: 6px;
}

.notice > * + * {
    margin-top: 8px;
}

.notice--status {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 28px;
}

.notice--status h2 {
    font-size: 24px;
    text-align: left;
    margin-bottom: 8px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

thead th {
    background-color: var(--blue);
    color: var(--white);
}

tbody th {
    font-weight: 600;
    background-color: var(--soft);
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

.compare {
    min-width: 620px;
}

/* FAQ */
.faq-category + .faq-category {
    margin-top: 56px;
}

.faq-category h2 {
    text-align: left;
    font-size: 30px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
}

.faq-item + .faq-item {
    margin-top: 28px;
}

.faq-item h3 {
    font-size: 19px;
    color: var(--blue);
    margin-bottom: 8px;
}

.faq-item p {
    line-height: 1.7;
}

/* CTA band */
.cta-band {
    background-color: var(--blue);
    color: var(--white);
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
}

.cta-band p {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 18px;
}

/* Prose (legal pages, thank-you pages) */
.prose {
    max-width: 780px;
    margin: 0 auto;
}

.prose h2 {
    text-align: left;
    font-size: 26px;
    margin: 44px 0 14px;
}

.prose h3 {
    font-size: 19px;
    margin: 26px 0 8px;
    color: var(--blue);
}

.prose p,
.prose ul,
.prose ol,
.prose .table-wrap {
    margin-bottom: 14px;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose li + li {
    margin-top: 6px;
}

.prose .notice {
    margin-bottom: 14px;
}

.prose .updated {
    color: var(--muted);
    font-size: 15px;
}

.result-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 44px 36px;
    background-color: var(--soft);
    border-radius: var(--radius);
    border-top: 6px solid var(--teal);
}

.result-panel h1 {
    font-size: 36px;
    color: var(--blue);
    margin-bottom: 16px;
}

.result-panel p,
.result-panel ul {
    margin-bottom: 14px;
    font-size: 18px;
}

.result-panel ul {
    padding-left: 22px;
}

.result-panel .btn {
    margin-top: 12px;
}

/* Forms */
.form-card {
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card > * + *,
.form-step > * + * {
    margin-top: 22px;
}

.section .form-card h2 {
    text-align: left;
    font-size: 26px;
    margin-bottom: 0;
}

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

.field label,
.field .label,
fieldset.group > legend {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.req {
    color: var(--error);
}

.hint {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--field-line);
    border-radius: 6px;
    background-color: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
}

.char-count {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

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

fieldset.form-step {
    padding-top: 8px;
}

fieldset.form-step + fieldset.form-step {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

fieldset.form-step > legend {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    padding: 0;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-weight: 400;
}

.field .choice {
    margin-bottom: 0;
    font-weight: 400;
}

.choice input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--blue);
}

.choice--box {
    padding: 14px;
    border: 1px solid var(--field-line);
    border-radius: 8px;
    margin-top: 10px;
}

.consent {
    padding: 16px;
    background-color: var(--soft);
    border-radius: 8px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.form-note {
    color: var(--muted);
    font-size: 14px;
}

/* Brief form: step-by-step view (only when the enhancement script has loaded) */
.progress {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    list-style: none;
    max-width: 720px;
    margin: 0 auto 28px;
}

.progress li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.progress .progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--field-line);
    font-weight: 700;
    color: var(--muted);
    background-color: var(--white);
}

.progress li.is-done .progress-num,
.progress li[aria-current="step"] .progress-num {
    border-color: var(--teal);
    background-color: var(--teal);
    color: var(--on-teal);
}

.progress li[aria-current="step"] {
    color: var(--ink);
    font-weight: 700;
}

html.js-steps fieldset.form-step:not(.is-active) {
    display: none;
}

html.js-steps fieldset.form-step + fieldset.form-step {
    margin-top: 0;
    padding-top: 8px;
    border-top: 0;
}

/* Contact layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-layout .form-card {
    max-width: none;
    margin: 0;
}

.contact-info {
    display: grid;
    gap: 20px;
}

/* Footer */
.site-footer {
    background-color: var(--blue);
    color: var(--white);
    padding: 48px 0 24px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li + li,
.footer-grid p + p {
    margin-top: 8px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: static;
        padding: 12px 0;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        gap: 2px 16px;
        font-size: 15px;
    }

    .hero {
        padding: 56px 0 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .page-hero {
        padding: 40px 0 8px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .section {
        padding: 44px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .section h3 {
        font-size: 20px;
    }

    .faq-category h2 {
        font-size: 24px;
    }

    .form-card {
        padding: 24px 18px;
    }

    .result-panel {
        padding: 32px 20px;
    }

    .result-panel h1 {
        font-size: 28px;
    }

    .steps--detailed .step {
        padding: 24px 20px;
    }

    .steps--detailed .step::before {
        position: static;
        margin: 0 0 14px;
    }

    .hero-cta .btn,
    .cta-buttons .btn,
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
