:root {
    --ink: #0b1220;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #1e3a5f;
    --brand-2: #4a90d9;
    --bg: #f7fafc;
    --card: rgba(255, 255, 255, 0.72);
    --stroke: rgba(30, 58, 95, 0.12);
    --radius: 4px;
    --scroll-offset: 88px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-padding-top: var(--scroll-offset); }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: #fff;
}

.is-hidden { display: none !important; }

main > section {
    background: #f0f4f9;
}
main > section:nth-of-type(even) {
    background: #fff;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(74, 144, 217, 0.45); outline-offset: 3px; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 10px 12px;
    z-index: 50;
}
.skip-link:focus { left: 12px; }

header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid rgba(30, 58, 95, 0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 190px;
}

.logo {
    height: 44px;
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.brand-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav a {
    font-size: 14px;
    color: rgba(30, 58, 95, 0.92);
    font-weight: 700;
    padding: 10px 10px;
    border-radius: 4px;
}
.nav a:hover { background: rgba(30, 58, 95, 0.06); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 190px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 38px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 26px rgba(30, 58, 95, 0.18);
}
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(30, 58, 95, 0.14);
    color: rgba(30, 58, 95, 0.92);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 1); border-color: rgba(30, 58, 95, 0.18); }

.hero {
    padding: 56px 0 22px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 26px;
    align-items: start;
}
.hero h1 {
    margin: 0;
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--brand);
}
.hero p {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(31, 41, 55, 0.92);
    max-width: 54ch;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.badges {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.10);
}
.badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(30, 58, 95, 0.10);
}
.badge strong {
    color: var(--brand);
    font-size: 14px;
    letter-spacing: -0.01em;
}
.badge span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    height: 18px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #c8102e;
    background-image:
        linear-gradient(90deg, transparent 0 34%, #ffffff 34% 42%, transparent 42% 100%),
        linear-gradient(transparent 0 42%, #ffffff 42% 56%, transparent 56% 100%);
}

.section {
    padding: 44px 0;
    scroll-margin-top: var(--scroll-offset);
}
.section h1 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 40px);
    letter-spacing: -0.02em;
    color: var(--brand);
}
.section h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--brand);
}
.section p.lead {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 70ch;
}

.pricing-section .pricing-intro {
    text-align: center;
}

.pricing-section .pricing-intro .lead {
    margin-left: auto;
    margin-right: auto;
}

.pricing-section .pricing-note {
    margin: 10px auto 0;
}

.pricing-section .plans-grid {
    position: relative;
    z-index: 2;
}

.pricing-section--embedded {
    --pricing-overlap: clamp(44px, 6vw, 90px);
    --pricing-split-shift: 250px;
    position: relative;
}

.pricing-section--embedded::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--pricing-split-shift);
    background: #fff;
    z-index: 0;
    pointer-events: none;
}

.pricing-section--embedded .container {
    position: relative;
    z-index: 1;
}

.pricing-section--embedded .plans-grid {
    margin-bottom: calc(var(--pricing-overlap) * -1);
}

.pricing-section--embedded + .section {
    --pricing-overlap: clamp(44px, 6vw, 90px);
    padding-top: calc(44px + var(--pricing-overlap));
}

.grid-3 {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.10);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.06);
    padding: 18px;
}

.plans-grid {
    align-items: stretch;
}

.plan-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 4px;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.10);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.06);
}

.plan-head {
    padding: 22px 22px 0;
    position: relative;
}

.plan-orb {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(74, 144, 217, 0.14);
    border: 1px solid rgba(74, 144, 217, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-orb i {
    font-size: 22px;
    line-height: 1;
    color: var(--brand);
}

.plan-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(74, 144, 217, 0.25);
    background: rgba(74, 144, 217, 0.16);
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.plan-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.plan-price {
    padding: 16px 22px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.plan-price .amount {
    font-size: 44px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.plan-price .currency {
    font-size: 16px;
    font-weight: 950;
    color: rgba(31, 41, 55, 0.92);
    transform: translateY(-6px);
}

.plan-price .per {
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
}

.plan-divider {
    margin: 18px 22px;
    height: 1px;
    background: rgba(30, 58, 95, 0.10);
}

.plan-body {
    padding: 0 22px 18px;
    flex: 1 1 auto;
}

.plan-footer {
    padding: 0 22px 22px;
}

.plan-footer .btn {
    width: 100%;
}

.plan-footer .btn + .btn {
    margin-top: 10px;
}

.plan-card .list {
    margin-top: 0;
    gap: 12px;
}

.fs-15 { font-size: 15px; }
.align-middle { vertical-align: middle; }

.plan-card .list li i {
    flex: 0 0 auto;
    margin-top: 1px;
}

.plan-card .ri-checkbox-circle-fill {
    color: var(--brand);
}

.plan-card .ri-close-circle-fill {
    color: rgba(30, 58, 95, 0.35);
}

.plan-feature--off {
    opacity: 0.7;
}

.fs-36 { font-size: 36px; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    object-fit: contain;
    line-height: 1;
    flex: 0 0 auto;
    color: var(--brand);
}

.feature-grid .feature-icon {
    width: 64px;
    height: 64px;
}

.plan-card .plan-badge {
    display: none;
}

.plan-card .tick {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(74, 144, 217, 0.16);
    border: 1px solid rgba(74, 144, 217, 0.22);
    color: var(--brand);
    font-size: 11px;
}

.plan-btn {
    height: 38px;
    border-radius: 4px;
    padding: 0 14px;
    font-weight: 900;
    font-size: 13px;
}

.plan-btn-primary {
    background: rgba(74, 144, 217, 0.12);
    color: rgba(30, 58, 95, 0.95);
    border: 1px solid rgba(74, 144, 217, 0.18);
    box-shadow: none;
}

.plan-btn-primary:hover {
    background: rgba(74, 144, 217, 0.16);
}

.plan-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(30, 58, 95, 0.92);
    border: 1px solid rgba(30, 58, 95, 0.14);
}

.plan-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(30, 58, 95, 0.18);
}

.plan-ribbon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 90px;
    height: 90px;
    overflow: hidden;
    pointer-events: none;
}

.plan-ribbon__text {
    position: absolute;
    top: 25px;
    right: -72px;
    width: 240px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    transform: rotate(45deg);
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: -0.01em;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(0, 0, 0, 0.02);
}

.plan-card--popular {
    border-color: rgba(74, 144, 217, 0.45);
    background: #fff;
    box-shadow: 0 28px 70px rgba(30, 58, 95, 0.12);
    transform: translateY(-8px);
}

.plan-card--popular .plan-orb {
    right: 56px;
    top: 22px;
}

.plan-card--popular .plan-btn-primary {
    background: var(--brand);
    color: #fff;
    border: 1px solid rgba(30, 58, 95, 0.06);
    box-shadow: 0 16px 34px rgba(30, 58, 95, 0.18);
}

.plan-card--popular .plan-btn-primary:hover {
    background: var(--brand-2);
}

@media (prefers-reduced-motion: reduce) {
    .plan-card--popular { transform: none; }
}
.card h3 {
    margin: 0;
    font-size: 18px;
    color: var(--brand);
    letter-spacing: -0.01em;
}
.muted { color: var(--muted); }

.price {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price .amount {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.price .per {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(31, 41, 55, 0.95);
    line-height: 1.4;
}

.tick-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--brand);
    font-size: 18px;
    line-height: 1;
}
.tick {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: rgba(74, 144, 217, 0.18);
    border: 1px solid rgba(74, 144, 217, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--brand);
    font-weight: 900;
    font-size: 12px;
}

.card-cta {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Contact form */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: rgba(30, 58, 95, 0.92);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input {
    display: block;
    width: 100%;
    margin-top: 6px;
    border-radius: 4px;
    border: 1px solid var(--stroke);
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
}

.form-input:focus {
    outline: 3px solid rgba(74, 144, 217, 0.28);
    outline-offset: 2px;
}

.notice {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 4px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    line-height: 1.6;
}

.notice.is-hidden {
    display: none;
}

.notice.is-ok {
    border-color: #5090d0;
    background: #5090d0;
    color: #fff;
}

.notice.is-err {
    border-color: rgba(30, 58, 95, 0.22);
    color: rgba(31, 41, 55, 0.92);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(30, 58, 95, 0.14);
    box-shadow: 0 18px 40px rgba(30, 58, 95, 0.12);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    min-width: 220px;
    flex: 1 1 420px;
    line-height: 1.5;
}

.cookie-banner-text strong {
    color: var(--brand);
}

.cookie-banner-muted {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.feature-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    padding: 14px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.62);
}
.feature strong {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: var(--brand);
    font-size: 16px;
    letter-spacing: -0.01em;
}
.feature span {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.5;
}

.two-col {
    margin-top: 18px;
    display: grid;
    gap: 16px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

details {
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
    padding: 12px 14px;
}
details + details { margin-top: 10px; }
summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--brand);
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 2px; color: rgba(31, 41, 55, 0.92); line-height: 1.7; }

.cta {
    padding: 22px;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(74, 144, 217, 0.92) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(30, 58, 95, 0.20);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cta h2 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.cta p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
    max-width: 64ch;
}

footer {
    padding: 28px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #263d5c;
}
.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-title {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.01em;
    font-size: 14px;
}

.footer-text {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 13px;
}

.footer-links {
    margin-top: 10px;
    columns: 2;
    column-gap: 28px;
}

.footer-links a {
    display: block;
    padding: 2px 0;
    break-inside: avoid;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.footer-logo {
    margin-top: 0;
}

.footer-logo img {
    height: 34px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.footer-logo-fallback {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    font-size: 14px;
}

.footer-logo-fallback[hidden] {
    display: none !important;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.90);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.footer-contact-link i {
    font-size: 18px;
    line-height: 1;
}

footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}
footer a:hover {
    color: rgba(255, 255, 255, 0.96);
    text-decoration: underline;
    text-decoration-color: rgba(74, 144, 217, 0.85);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.footer-email {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.98);
}
.footer-email:hover {
    color: rgba(74, 144, 217, 0.95);
}
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.pill {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
}

@media (max-width: 980px) {
    :root { --scroll-offset: 132px; }
    .header-inner { flex-wrap: wrap; }
    .nav { width: 100%; justify-content: center; }
    .header-actions { width: 100%; justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .header-actions, .brand { min-width: auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .plan-card--popular { transform: none; }
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .footer-links { columns: 1; }
}
