/* =========================================
   LABABOOKi - Landing Page Styles
   ========================================= */

:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #5a7256; /* Greenish from master */
    --primary-hover: #4b6148;
    --success: #2ecc71; /* Green */
    --success-hover: #27ae60;
    --border: #333333;
    --header-height: 70px;
    --font-family: 'Inter', sans-serif;
    --hero-progress-h: 2px;
    --hero-chevron-stroke: 3px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Full-bleed sections: avoid accidental shrink vs viewport (banding / gap on the right). */
section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- HEADER --- */
.header {
    height: var(--header-height);
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

/* Same .container box as #features — do not override max-width: 1200px with 100% */
.header .container.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    position: relative;
    z-index: 1002;
    min-width: 0;
}

/* Same width as #features .container; logo centered, languages at content right edge */
.header-bar {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}

.header .logo {
    grid-column: 2;
    justify-self: center;
    max-width: 100%;
    min-width: 0;
}

.header-lang {
    grid-column: 3;
    justify-self: end;
    flex-shrink: 0;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo img {
    height: 32px;
    border-radius: 6px;
}

/* Header logo: match master login (.logo in master/style.css — Inter 28px / 300 / 6px tracking) */
.header .logo {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: none;
    transition: text-shadow 0.4s ease, filter 0.4s ease;
}

.header .logo img {
    transition: filter 0.4s ease;
}

.header .logo:hover {
    text-shadow:
        0 0 14px rgba(90, 114, 86, 0.9),
        0 0 28px rgba(90, 114, 86, 0.55),
        0 0 44px rgba(155, 201, 149, 0.35);
}

.header .logo:focus-visible {
    text-shadow:
        0 0 14px rgba(90, 114, 86, 0.9),
        0 0 28px rgba(90, 114, 86, 0.55),
        0 0 44px rgba(155, 201, 149, 0.35);
    outline: 2px solid rgba(90, 114, 86, 0.65);
    outline-offset: 6px;
    border-radius: 4px;
}

.header .logo:hover img,
.header .logo:focus-visible img {
    filter:
        drop-shadow(0 0 8px rgba(90, 114, 86, 0.85))
        drop-shadow(0 0 18px rgba(90, 114, 86, 0.45));
}

.header .logo:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .header .logo,
    .header .logo img {
        transition: text-shadow 0.2s ease, filter 0.2s ease;
    }

    .header .logo:hover,
    .header .logo:focus-visible {
        text-shadow: 0 0 10px rgba(90, 114, 86, 0.5);
    }
}

/* Navigation */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--text-main);
}

/* Header nav: brand green underline on hover */
.header .nav a {
    position: relative;
    padding-bottom: 2px;
}

.header .nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.header .nav a:hover::after,
.header .nav a:focus-visible::after {
    transform: scaleX(1);
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

.btn-primary {
    background: rgba(90, 114, 86, 0.2);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 10px rgba(90, 114, 86, 0.2);
}

.btn-primary:hover {
    background: rgba(90, 114, 86, 0.3);
    border-color: #728c6c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 114, 86, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(90, 114, 86, 0.2);
}

.btn-success {
    background: rgba(90, 114, 86, 0.2);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 10px rgba(90, 114, 86, 0.2);
}

.btn-success:hover {
    background: rgba(90, 114, 86, 0.3);
    border-color: #728c6c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(90, 114, 86, 0.4);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(90, 114, 86, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + 28px) 0 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

@supports (height: 100svh) {
    .hero {
        min-height: calc(100svh - var(--header-height));
    }
}

.hero .hero-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.hero-copy {
    flex-shrink: 0;
    overflow: visible;
}

.hero-bottom {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.hero-slider-bottom {
    width: 100%;
    padding-top: 32px;
}

/* Equal gap: progress strip → button → #apps border-top */
.hero-cta-strip {
    --hero-cta-gap: clamp(22px, 3.2vw, 32px);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: var(--hero-cta-gap) 16px;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(90, 114, 86, 0.1) 0%, rgba(18, 18, 18, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 800;
    line-height: 1.4;
    padding: 0.12em 0 0.06em;
    margin-bottom: 18px;
    overflow: visible;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    flex-wrap: wrap;
}

/* --- HERO SLIDER (outside arrows + progress strip) --- */
.hero-slider-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 920px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.hero-slider-column {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* One thin segment per slide; active segment runs countdown */
.hero-slider-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 0;
}

.hero-slider-progress-segment {
    flex: 1;
    min-width: 20px;
    height: var(--hero-progress-h);
    padding: 9px 0;
    margin: -9px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    position: relative;
}

.hero-slider-progress-segment:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.hero-slider-progress-segment-track {
    display: block;
    width: 100%;
    height: var(--hero-progress-h);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-slider-progress-segment-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), #9bc995);
    opacity: 1;
}

.hero-slider-progress-segment-fill.is-spent {
    transform: scaleX(0);
    opacity: 0.35;
}

.hero-slider-progress-segment-fill.is-pending {
    transform: scaleX(1);
    opacity: 0.2;
}

.hero-slider-progress-segment-fill--run {
    animation: hero-progress-drain 5s linear forwards;
}

@keyframes hero-progress-drain {
    from {
        transform: scaleX(1);
        opacity: 1;
    }
    to {
        transform: scaleX(0);
        opacity: 0.25;
    }
}

.hero-slider-column:hover .hero-slider-progress-segment-fill--run {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-progress-segment-fill--run {
        animation: none;
    }
}

/*
 * Hero slider: aspect-ratio + max-height can make the used width smaller than the parent; the box
 * stays start-aligned → looks shifted left on mobile. Enforce full row width and center if needed.
 */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    border-radius: 16px;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: min(420px, 46vh);
}

@supports (height: 100svh) {
    .hero-slider-container {
        max-height: min(420px, 46svh);
    }
}

.hero-slider {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-arrow--outside {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 52px;
    min-height: 56px;
    padding: 6px 2px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.2s ease, filter 0.25s ease;
}

.slider-arrow--outside:hover {
    color: var(--primary);
    filter: drop-shadow(0 0 14px rgba(90, 114, 86, 0.45));
}

.slider-arrow--outside:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    color: var(--primary);
}

.slider-arrow--outside:active {
    transform: scale(0.96);
}

.slider-arrow-svg {
    width: 46px;
    height: 56px;
    display: block;
}

.slider-arrow-svg .slider-arrow-arm {
    stroke-width: var(--hero-chevron-stroke);
    vector-effect: non-scaling-stroke;
}

.mockup-placeholder {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.45;
    border: 2px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
}

.mockup-placeholder strong {
    color: #b0b0b0;
    font-weight: 700;
}

/* --- SECTION SHARED --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- PROBLEM & SOLUTION --- */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ps-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
    height: 100%;
    transition: transform 0.3s;
}

.ps-box:hover {
    transform: translateY(-5px);
}

.ps-box.pain {
    border-color: rgba(231, 76, 60, 0.3);
}

.ps-box.solution {
    border-color: rgba(46, 204, 113, 0.3);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(46, 204, 113, 0.05) 100%);
}

.ps-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.ps-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ps-text {
    color: var(--text-muted);
    font-size: 16px;
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(155, 201, 149, 0.1);
    border-color: rgba(155, 201, 149, 0.3);
}

.feature-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #1a1a1a;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.05);
}

.feature-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.feature-placeholder strong {
    color: #b0b0b0;
}

/* --- APP STORE ROW --- */
.app-download {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.app-download-inner {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
}

.app-download-lead {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    line-height: 1.65;
}

.app-download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 36px;
    text-align: left;
}

.app-download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-download-card:hover {
    border-color: rgba(90, 114, 86, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.app-download-pill {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(90, 114, 86, 0.45);
    background: rgba(90, 114, 86, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.app-download-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 14px;
    line-height: 1.3;
}

.app-download-card__body {
    flex: 1;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.app-download-card__body strong {
    color: var(--text-main);
    font-weight: 600;
}

@media (max-width: 768px) {
    .app-download-inner {
        max-width: none;
    }

    .app-download-lead {
        max-width: none;
    }

    .app-download-grid {
        grid-template-columns: 1fr;
    }
}

.store-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}

.store-badge-row.store-badge-row--card {
    margin-top: auto;
    justify-content: center;
    margin-bottom: 0;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
    border-color: var(--primary);
    background: rgba(90, 114, 86, 0.12);
    transform: translateY(-2px);
}

.store-badge--play:hover {
    border-color: #3ddc84;
    background: rgba(61, 220, 132, 0.08);
}

/* --- TARGET AUDIENCE --- */
.audience {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(90,114,86,0.05) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.price-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* pricing-row-v2 */
.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
    direction: ltr;
}

.price-row-side {
    flex: 1 1 0;
    min-width: 0;
}

.price-row-side--right {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    padding-left: 10px;
}

.price-row-main {
    flex: 0 0 auto;
}

.price-amount {
    display: inline-block;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.price-amount .price-currency {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}

.price-old {
    display: inline-block;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.price-old .price-currency {
    font-size: 12px;
    color: #666;
    margin-left: 1px;
}

.price-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.price-features {
    text-align: left;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

.pricing-warning {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    border: 1px dashed #555;
}

/* --- REFERRAL PROMO (under pricing) --- */
.referral-promo-section {
    padding-top: 40px;
    padding-bottom: 100px;
    border-top: 1px solid var(--border);
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 114, 86, 0.14) 0%, transparent 55%);
}

.referral-promo-card {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(90, 114, 86, 0.55) 0%, rgba(90, 114, 86, 0.12) 45%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.referral-promo-card__glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(155, 201, 149, 0.15) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.9;
}

.referral-promo-card__inner {
    position: relative;
    padding: 32px 28px 36px;
    border-radius: 19px;
    background: linear-gradient(180deg, rgba(22, 24, 22, 0.98) 0%, rgba(12, 14, 12, 0.96) 100%);
    text-align: center;
}

.referral-promo-card__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #f2f5f2;
}

.referral-promo-card__badge {
    margin: 0 0 18px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: #e8f0e6;
    background: rgba(90, 114, 86, 0.22);
    border: 1px solid rgba(155, 201, 149, 0.35);
    border-radius: 14px;
    text-align: center;
    max-width: 100%;
}

.referral-promo-card__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .referral-promo-card__inner {
        padding: 26px 18px 30px;
    }

    .referral-promo-card__title {
        font-size: 22px;
    }

    .referral-promo-card__badge {
        font-size: 14px;
        padding: 12px 14px;
    }

    .referral-promo-card__text {
        font-size: 15px;
    }
}

/* --- FOOTER CTA --- */
.cta-footer {
    text-align: center;
    padding: 100px 0;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, rgba(18, 18, 18, 0) 70%);
}

.cta-footer h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.main-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.main-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 15px;
    width: 100%;
    max-width: 100%;
}

/* Bottom bar under main footer (labAuri credit) */
.footer-socket {
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    padding: 14px 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.footer-socket-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.footer-socket-copy {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.footer-socket-meta {
    flex: 0 0 auto;
    text-align: right;
}

.footer-socket-powered {
    margin: 0;
    line-height: 1.45;
}

.footer-socket-powered span,
.footer-socket-powered .footer-socket-labauri {
    display: inline;
}

.footer-socket-madein {
    margin: 4px 0 0;
    font-size: 11px;
    opacity: 0.85;
}

.footer-socket-labauri {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-socket-labauri:hover,
.footer-socket-labauri:focus-visible {
    color: #728c6c;
    text-shadow: 0 0 12px rgba(90, 114, 86, 0.45);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(26px, 4.5vw, 34px);
    }

    .section-subtitle {
        max-width: none;
    }

    .header .logo {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-cabinet-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
    }

    .footer-cabinet-actions .btn {
        width: 100%;
        min-height: 50px;
    }

    .footer-socket-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-socket-meta {
        text-align: center;
    }

    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 0;
        min-height: calc(100dvh - var(--header-height));
    }

    .hero-slider-bottom {
        padding-top: 24px;
    }

    .hero-cta-strip {
        --hero-cta-gap: 22px;
    }

    .hero h1 {
        margin-bottom: 14px;
    }

    .hero p {
        margin-bottom: 22px;
        font-size: 17px;
    }

    .hero-slider-container {
        max-height: min(300px, 42vh);
    }

    @supports (height: 100svh) {
        .hero-slider-container {
            max-height: min(300px, 42svh);
        }
    }

    .mockup-placeholder {
        font-size: 12px;
        padding: 12px;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    /*
     * DOM order: prev → column → next. Grid overlap was one bug; flex+order is resilient:
     * column gets order:1 + full row; arrows share order:2 on the next line, centered as a pair.
     */
    .hero-slider-frame {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 12px 16px;
        width: 100%;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slider-column {
        order: 1;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    #slider-prev.slider-arrow--outside {
        order: 2;
        margin-right: 0;
        min-width: 48px;
        min-height: 52px;
    }

    #slider-next.slider-arrow--outside {
        order: 2;
        margin-left: 0;
        min-width: 48px;
        min-height: 52px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .section {
        padding: 48px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .logo {
        font-size: 18px;
    }

    .slider-arrow--outside {
        min-width: 48px;
        min-height: 52px;
    }

    .slider-arrow-svg {
        width: 40px;
        height: 48px;
    }
}
