.hero-title {
    font-weight: 500; /* возьмётся Plumb-Medium */
}

.small-note {
    font-weight: 300; /* возьмётся Plumb-Light */
}

.tech-label {
    font-family: "PFIsotextPro", "Plumb", sans-serif;
}

:root {
    --primary: #c2185b;
}

.btn-large {
    background-color: var(--primary);
}
.floating-cta {
    background-color: var(--primary);
}
.btn-primary {
    background-color: var(--primary);
}
.text-primary {
    background-color: var(--primary);
}
.form-card h2 {
    color: var(--primary);
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
}

/* Landing auth tabs (signup/login) */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(20, 20, 20, 0.06);
    border-radius: 14px;
    padding: 6px;
    margin: 0 auto 14px;
}

.auth-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    color: rgba(20, 20, 20, 0.72);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-size: 20px;
}

.auth-tab.is-active {
    background: #fff;
    color: rgba(20, 20, 20, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* Form message */
.form-message {
    min-height: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(20, 20, 20, 0.72);
}

.form-message--success {
    color: #067647;
}

.form-message--error {
    color: #b42318;
}

/* Input error (subtle) */
.start-form input.is-invalid,
.start-form select.is-invalid {
    border-color: rgba(240, 68, 56, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12) !important;
}

.start-form input.is-invalid::placeholder {
    color: rgba(180, 35, 24, 0.85);
}

/* Phone field (country select + digits input) */
.phone-field {
    display: flex;
    gap: 10px;
}

.start-form select.phone-country {
    width: 140px;
    height: 52px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.start-form select.phone-country:focus {
    outline: none;
    border-color: rgba(194, 24, 91, 0.5);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.14);
}

.start-form input[data-phone-national] {
    flex: 1;
    min-width: 0;
}

/* Signup resend code */
.signup-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(20, 20, 20, 0.72);
}

.signup-resend__btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: #114AA1;
    cursor: pointer;
    text-decoration: underline;
}

.signup-resend__btn:disabled {
    opacity: 0.55;
    cursor: default;
    text-decoration: none;
}

.signup-resend__timer {
    color: rgba(20, 20, 20, 0.72);
}
.hero-copy h1 {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
}
.section-header h2 {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
}
.text-side h2 {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
}
.section-header.narrow p {
    font-size: 13px;
}
.section-header.narrow p {
    margin-bottom: calc(var(--spacing) * 8);
}
.text-side h2 {
    color: var(--primary);
}
.icon-circle {
    color: var(--primary);
}
.feature-card h3 {
    color: var(--primary);
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
}
.stat-value  {
    color: var(--primary);
}
.rating {
    color: var(--primary);
}

.section.safety {
    background: linear-gradient(135deg, rgba(226, 23, 141, 0.08), rgba(240, 244, 255, 0.95));
}

.hero-copy h1 {
    color: #fff;
}

.hero-copy h1 {
    font-size: 40px;
}

.hero-copy p {
    color: #fff;
}

.section-header h2 {
    color: #114AA1;
}

.section-header p {
    color: #114AA1;
}

.brand img {
    width: 70px;
}

.brand span {
    font-family: "PFIsotextPro", "Plumb", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: 2px;
    padding-left: 5px;
    height: 60px;
}

.footer-overlay {
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.8) 0%, rgba(156, 39, 176, 0.8) 50%, rgba(233, 30, 99, 0.8) 100%);;
}

/* Hero background image override for landing page */
.hero {
    /* Previous hero background (from landing.css):
       background: linear-gradient(135deg, #fef5f8 0%, #f8f3fe 50%, #f0f4ff 100%);
    */
    background:
        linear-gradient(135deg, rgba(17, 74, 161, 0.28) 0%, rgba(22, 22, 22, 0.22) 100%),
        url("../images/background_1.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Keep landing hero as the first full-screen section */
.hero:not(.hero--onboarding) {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    display: flex;
    align-items: center;
    padding: clamp(24px, 5vh, 56px) 0;
}

.hero:not(.hero--onboarding)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(70px, 13vh, 140px);
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.72) 0%,
        rgba(26, 26, 26, 0.36) 45%,
        rgba(26, 26, 26, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero:not(.hero--onboarding) .hero-bg {
    z-index: 0;
}

.hero:not(.hero--onboarding) .hero-grid {
    z-index: 2;
}

/*
 * Mobile hero: no forced viewport height — iOS Safari's address bar makes
 * 100svh smaller than the form, and combined with .hero-grid's align-items:
 * center it clipped the top/bottom of the form (Google/Facebook buttons fell
 * off the bottom). Let the hero size to its content; users can scroll naturally.
 */
@media (max-width: 768px) {
    .hero:not(.hero--onboarding) {
        min-height: auto;
        padding: 24px 0 40px;
    }

    .hero:not(.hero--onboarding) .hero-grid {
        align-items: start;
    }

    .hero:not(.hero--onboarding) .form-card {
        padding: 18px 16px 20px;
        width: min(520px, 100%);
        border-radius: 16px;
    }

    .hero:not(.hero--onboarding) .form-card h2 {
        font-size: 22px;
        margin: 0 0 10px;
    }

    .hero:not(.hero--onboarding) .auth-tabs {
        padding: 4px;
        margin-bottom: 10px;
    }

    .hero:not(.hero--onboarding) .auth-tab {
        padding: 8px 12px;
        font-size: 16px;
    }

    .hero:not(.hero--onboarding) .start-form {
        gap: 10px;
    }

    .hero:not(.hero--onboarding) .start-form input,
    .hero:not(.hero--onboarding) .start-form select.phone-country {
        height: 46px;
        font-size: 16px;
    }

    .hero:not(.hero--onboarding) .form-note {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .hero:not(.hero--onboarding) .signup-consent {
        font-size: 12px;
        margin: 2px 0 10px;
    }

    .hero:not(.hero--onboarding) .signup-button {
        font-size: 17px;
    }

    .hero:not(.hero--onboarding) .btn-primary {
        height: 48px;
        width: 100%;
        padding: 0 14px;
    }

    .hero:not(.hero--onboarding) .btn-ghost {
        height: 46px;
        width: 100%;
        padding: 0 14px;
        font-size: 15px;
    }

    .hero:not(.hero--onboarding) .form-divider {
        font-size: 13px;
        margin: 2px 0;
    }
}

/* Landing header background image */
.site-header {
    background-image: url("../images/header-bg-2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
}

.hero-copy {
    transform: translateY(-140px);
}

/* Compact header + hero for mobile widths */
@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .hero-copy {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
    }

    .form-card {
        width: min(520px, 100%);
        margin-left: 0;
    }

    .header-inner {
        gap: 12px;
    }

    .brand span {
        font-size: 40px;
        letter-spacing: 1px;
    }
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.nav-toggle__bar + .nav-toggle__bar {
    margin-top: 5px;
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 22;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-nav-panel {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    padding: 12px;
    background: rgba(26, 26, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    z-index: 23;
    display: grid;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-nav-panel a {
    color: #fff;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    font-weight: 600;
}

.mobile-nav-panel a:hover {
    background: rgba(255, 255, 255, 0.10);
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 720px) {
    .mobile-nav-backdrop {
        inset: 68px 0 0 0;
    }

    .mobile-nav-panel {
        top: 68px;
    }
}

body.mobile-nav-open {
    overflow: hidden;
}

/* Keep this block after base .nav-toggle rule (cascade fix). */
@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

.floating-cta {
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-cta.is-visible:hover {
    transform: translateY(-2px);
}

/* Match old landing hero heading style */
.hero-copy h1 {
    font-family: "PFIsotextPro", "Plumb", sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 35px;
    line-height: 40px;
}

.signup-button {
    font-size: 22px;
    font-weight: 400;
}

.signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 14px;
    font-size: 13px;
    color: var(--muted, #555);
    line-height: 1.45;
    cursor: pointer;
}

.signup-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: rgba(226, 23, 141, 1);
    cursor: pointer;
}

.signup-consent a {
    color: rgba(226, 23, 141, 1);
    text-decoration: underline;
}

/* About platform (SEO text block) */
.about-platform { padding: 64px 0; background: #f8f8f8; }
.about-platform h2 { font-size: 32px; font-weight: 900; margin-bottom: 24px; }
.about-platform p { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 16px; max-width: 800px; }
