/* Global Reset including body/html */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #0f172a;
    /* Ensure dark background covers everything */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.sleep-landing * {
    box-sizing: border-box;
}

:root {
    --forest-calm: #446643;
    --misty-leaves: #94A694;
    --warm-beige: #FAF8F5;
    --broken-white: #FDFCFB;
    --deep-green: #2D3E2B;
    --natural-brown: #8B7355;
    --soft-amber: #E8D5B7;
    --soft-grey-beige: #D4CFC7;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --logo-max-height: clamp(60px, 9vw, 96px);

    /* Premium Shadow Layers */
    --shadow-sm: 0 1px 2px 0 rgba(68, 102, 67, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(68, 102, 67, 0.08), 0 2px 4px -1px rgba(68, 102, 67, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(68, 102, 67, 0.1), 0 4px 6px -2px rgba(68, 102, 67, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(68, 102, 67, 0.12), 0 10px 10px -5px rgba(68, 102, 67, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(68, 102, 67, 0.25);

    /* Smooth Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.sleep-landing {
    font-family: var(--font-sans);
    background-color: #0f172a;
    /* Changed to dark blue as requested */
    color: #f8fafc;
    /* Lighter text for dark background */
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

.sleep-landing.mobile-menu-open {
    overflow: hidden;
}

/* ===== TYPOGRAPHY - PREMIUM EDITION ===== */
.sleep-landing h1,
.sleep-landing h2,
.sleep-landing h3,
.sleep-landing h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--forest-calm);
    line-height: 1.2;
    font-feature-settings: "ss01" 1, "liga" 1;
}

.sleep-landing h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--forest-calm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sleep-landing h2 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 0.6em;
    font-weight: 600;
}

.sleep-landing h3 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 0.6em;
}

.sleep-landing p {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.8;
    margin-bottom: 1.3em;
    letter-spacing: -0.011em;
}

.sleep-landing a {
    color: var(--forest-calm);
    text-decoration: none;
    transition: all 400ms var(--transition-smooth);
    position: relative;
}

/* Selection Styling */
.sleep-landing ::selection {
    background-color: var(--soft-amber);
    color: var(--deep-green);
}

.sleep-landing ::-moz-selection {
    background-color: var(--soft-amber);
    color: var(--deep-green);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 18px 22px 20px 19px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all 500ms var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    min-height: 52px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 500ms var(--transition-smooth);
}

.btn:hover::before {
    opacity: 1;
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 500ms var(--transition-bounce);
}

.btn:hover .btn-icon {
    transform: scale(1.15) rotate(-5deg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--forest-calm) 0%, var(--deep-green) 100%);
    color: var(--broken-white);
    box-shadow:
        0 4px 15px rgba(68, 102, 67, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(68, 102, 67, 0.25),
        0 6px 15px rgba(68, 102, 67, 0.15),
        0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
    background: var(--broken-white);
    color: var(--forest-calm);
    border: 2px solid var(--misty-leaves);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--misty-leaves);
    color: var(--broken-white);
    border-color: var(--forest-calm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Floating Animation for CTA */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.btn-primary.floating {
    animation: float 3s ease-in-out infinite;
}

/* Specyficzny styl dla landing page snu */
.sleep-landing {
    background: radial-gradient(circle at 20% 20%, rgba(232, 213, 183, 0.35), transparent 35%), radial-gradient(circle at 80% 15%, rgba(148, 166, 148, 0.25), transparent 35%), var(--warm-beige);
}

/* Ciemne menu tylko na tej podstronie */
.sleep-landing header {
    background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0b1220 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sleep-landing header::before {
    background: radial-gradient(circle at 10% 10%, rgba(251, 191, 36, 0.25), transparent 30%), radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.2), transparent 30%);
}

.sleep-landing header::after {
    background: linear-gradient(90deg, transparent 0%, rgba(251, 191, 36, 0.4) 50%, transparent 100%);
}

.sleep-landing nav a,
.sleep-landing .nav-right a {
    color: #f8fafc;
}

.sleep-landing nav a:hover,
.sleep-landing .nav-right a:hover {
    color: #fbbf24;
}

.sleep-landing nav svg {
    stroke: currentColor;
    color: #f8fafc;
}

.sleep-landing .nav-separator {
    color: rgba(248, 250, 252, 0.7);
}

.sleep-landing .search-icon {
    color: #f8fafc;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sleep-landing.mobile-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.sleep-landing.mobile-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.sleep-landing.mobile-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.sleep-shell {
    max-width: min(1200px, 100vw);
    margin: 0 auto;
    padding: 0 2rem;
}

.sleep-hero {
    padding: 3.5rem 0 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #111827 40%, #0b1220 100%);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sleep-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.14), transparent 35%), radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.12), transparent 35%);
    pointer-events: none;
}

.sleep-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: stretch;
}

.sleep-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    text-align: center;
}

.sleep-eyebrow-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 760px;
    margin: -0.9rem auto 0.2rem;
}

.sleep-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: 100%;
}

.sleep-eyebrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.sleep-hero h1 {
    color: #f8fafc;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: 1.05;
    text-align: center;
}

.sleep-hero h1 .line {
    display: block;
}

.sleep-hero h1 .no-wrap {
    white-space: nowrap;
}

.sleep-hero h1 span.accent {
    color: #fbbf24;
    -webkit-text-fill-color: currentColor;
    background: none;
}

.sleep-hero .lead {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin: 0 auto 1.5rem;
    text-align: center;
    max-width: 760px;
    line-height: 1.6;
}

.sleep-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.sleep-cta-note {
    font-size: 0.95rem;
    color: #d1d5db;
}

.sleep-hero-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem;
    margin-top: 1.5rem;
    justify-items: center;
    max-width: min(1100px, 100vw);
    margin-left: auto;
    margin-right: auto;
}

.sleep-hero-bullets li {
    list-style: none;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.sleep-hero-bullets .bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.35);
}

.sleep-hero .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none;
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.sleep-hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(251, 191, 36, 0.35);
}

.sleep-hero-visual {
    position: relative;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    margin-top: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sleep-hero-visual img {
    width: 100%;
    max-width: min(645px, 100%);
    display: block;
    background: transparent;
    object-fit: contain;
    border-radius: 0;
    margin: 0 auto;
}

.sleep-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 0.6rem 1rem;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    font-weight: 700;
    color: #fbbf24;
}

.sleep-badge small {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
}

.sleep-section {
    padding: 4rem 0;
}

/* Sekcja 2 – ciemne tło z delikatnym gradientem */
.sleep-section.dark {
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.08), transparent 35%), radial-gradient(circle at 80% 30%, rgba(59, 130, 246, 0.08), transparent 35%), linear-gradient(135deg, #0f172a 0%, #0d1625 50%, #0b1220 100%);
    color: #f8fafc;
}

.sleep-section.dark h2,
.sleep-section.dark h3 {
    color: #f8fafc;
}

.sleep-section.dark p {
    color: #e5e7eb;
}

.sleep-section.dark .sleep-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.sleep-section.dark .sleep-card h3 {
    color: #fbbf24;
}

.sleep-section.dark .sleep-card p {
    color: #e5e7eb;
}

.sleep-section.dark .sleep-quote {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

/* Sekcja aplikacji – minimalistyczna inspirowana Apple */
.sleep-section.feature {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #f8fafc 100%);
    color: var(--deep-green);
    position: relative;
    overflow: hidden;
}

.sleep-section.feature .sleep-shell {
    position: relative;
    z-index: 1;
}

.sleep-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.sleep-feature-text h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 0.4rem;
    color: var(--deep-green);
    text-align: center;
}

.sleep-feature-text p {
    color: #2f3c2e;
    margin-bottom: 1.4rem;
    text-align: center;
}

.sleep-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(68, 102, 67, 0.08);
    color: var(--deep-green);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.9rem;
}

.sleep-form-card .sleep-feature-badge {
    display: flex;
    justify-content: center;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.feature-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.8rem auto 1.2rem;
    max-width: 100%;
    padding: 0;
}

.feature-step {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    background: rgba(68, 102, 67, 0.05);
    border: 1px solid rgba(68, 102, 67, 0.12);
    border-radius: 12px;
    box-shadow: none;
    min-width: unset;
    position: relative;
    overflow: hidden;
}

.feature-step::before {
    content: attr(data-step);
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(68, 102, 67, 0.1);
    line-height: 1;
    pointer-events: none;
}

.feature-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--deep-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(45, 62, 43, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.feature-step strong {
    display: block;
    color: var(--deep-green);
    margin-bottom: 0.1rem;
}

.feature-step span {
    color: #3a4638;
}

.sleep-form-card .feature-step span {
    color: #2f3c2e;
}

.sleep-feature-image {
    text-align: center;
}

.sleep-section-header {
    max-width: 720px;
    margin: -1.2rem auto 1.5rem;
    text-align: center;
}

.section-kicker {
    text-align: center;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.sleep-section-header h2 {
    margin-bottom: 0.3rem;
}

.sleep-section-header p {
    margin-bottom: 0;
    color: #41513c;
}

.sleep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.3rem;
    max-width: min(1100px, 100vw);
    margin-left: auto;
    margin-right: auto;
}

.sleep-card {
    background: #fff;
    border: 1px solid rgba(68, 102, 67, 0.12);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
}

.sleep-card img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.sleep-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.sleep-card p {
    margin: 0;
    font-size: 0.98rem;
    color: #41513c;
}

.sleep-quote {
    background: linear-gradient(120deg, rgba(148, 166, 148, 0.3), rgba(232, 213, 183, 0.45));
    border-radius: 20px;
    padding: 1.8rem;
    margin: 1.2rem auto 0;
    border: 1px solid rgba(68, 102, 67, 0.18);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 860px;
}

.sleep-quote p {
    margin: 0;
    color: #2d3e2b;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.sleep-quote p::before,
.sleep-quote p::after {
    content: '“';
    font-size: 1.4em;
    color: rgba(68, 102, 67, 0.6);
}

.sleep-quote p::after {
    content: '”';
}

.sleep-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    align-items: center;
}

.sleep-app-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(68, 102, 67, 0.12);
}

.sleep-app-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.sleep-app-card li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-weight: 600;
    color: #2f3c2e;
}

.sleep-app-card li span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #3f4e3a;
}

.sleep-form-section {
    padding: 3.5rem 0;
}

.sleep-form-section.dark {
    background: linear-gradient(135deg, #0b1220 0%, #0f172a 45%, #0c1425 100%);
    color: #f8fafc;
}

.sleep-form-section.dark .sleep-form-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.sleep-form-section.dark .sleep-form-card label,
.sleep-form-section.dark .sleep-form-card h2,
.sleep-form-section.dark .sleep-form-card p {
    color: #1f2a1d;
}

.sleep-form-section.dark .sleep-feature-badge {
    background: rgba(68, 102, 67, 0.12);
    color: #1f2a1d;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.sleep-form-section.dark .sleep-form-card input[type="text"],
.sleep-form-section.dark .sleep-form-card input[type="email"] {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: 1px solid rgba(68, 102, 67, 0.3);
}

.sleep-form-section.dark .sleep-form-card input[type="text"]:focus,
.sleep-form-section.dark .sleep-form-card input[type="email"]:focus {
    border-color: var(--forest-calm);
    box-shadow: 0 0 0 3px rgba(68, 102, 67, 0.15);
}

.sleep-form-section.dark .sleep-legal {
    color: #2f3c2e;
}

.sleep-form-section.dark .feature-step {
    background: rgba(68, 102, 67, 0.06);
    border: 1px solid rgba(68, 102, 67, 0.12);
}

/* Alternatywny, jasny formularz w stylu żółtych akcentów */
.sleep-form-section.alt {
    background:
        linear-gradient(135deg, rgba(12, 18, 33, 0.64) 0%, rgba(10, 16, 28, 0.6) 45%, rgba(8, 14, 26, 0.56) 100%),
        url('tlo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e5e7eb;
}

.sleep-form-section.alt .sleep-shell {
    max-width: min(1180px, 100vw);
}

.sleep-form-section.alt .sleep-feature-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sleep-form-section.alt .form-alt-intro h2,
.sleep-form-section.alt .form-alt-intro p {
    color: #f8fafc;
}

.form-alt-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.4rem;
    align-items: center;
}

.form-alt-intro h2 {
    text-align: left;
}

.form-highlight {
    text-align: left;
    font-weight: 700;
    color: #fef3c7;
    margin: 0.35rem 0 0.75rem;
}

.sleep-form-section.alt .feature-steps {
    gap: 0.75rem;
    justify-content: flex-start;
    margin-left: 0;
}

.sleep-form-section.alt .feature-step {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(251, 191, 36, 0.55) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    color: #0b1220;
    padding: 0.95rem 1.15rem;
    text-shadow: none;
}

.sleep-form-section.alt .feature-step span {
    color: #111827;
}

.sleep-form-section.alt .feature-step::before {
    color: rgba(245, 158, 11, 0.25);
}

.form-alt-card {
    background: #fff;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.form-alt-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    text-align: center;
}

.form-alt-card p {
    text-align: center;
    color: #2f3c2e;
    margin-bottom: 1rem;
}

.sleep-form-section.alt .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none;
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sleep-form-section.alt .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(251, 191, 36, 0.35);
}

.sleep-form-section.alt .btn-primary:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.btn-primary.cta-animated {
    animation: sleepPulse 2.3s ease-in-out infinite;
}

@keyframes sleepPulse {
    0% {
        box-shadow: 0 16px 36px rgba(251, 191, 36, 0.35), 0 0 0 0 rgba(251, 191, 36, 0.35);
    }

    50% {
        box-shadow: 0 18px 42px rgba(251, 191, 36, 0.45), 0 0 0 10px rgba(251, 191, 36, 0.14);
    }

    100% {
        box-shadow: 0 16px 36px rgba(251, 191, 36, 0.35), 0 0 0 0 rgba(251, 191, 36, 0.35);
    }
}

.form-author {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.4rem 0 0.75rem;
}

.form-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.form-author span {
    font-weight: 700;
    color: #f8fafc;
    display: block;
}

.form-author small {
    display: block;
    color: #e5e7eb;
    font-weight: 500;
}

.form-quote {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    color: #f8fafc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    margin-left: 2.8rem;
    font-size: 0.92rem;
    max-width: 240px;
    line-height: 1.35;
    text-align: left;
}

@media (max-width: 960px) {
    .form-alt-grid {
        grid-template-columns: 1fr;
    }

    .form-alt-intro h2,
    .form-highlight {
        text-align: center;
    }

    .sleep-form-section.alt .feature-steps {
        justify-content: center;
    }
}

.sleep-form-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border-radius: 22px;
    padding: 2.3rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 860px;
    margin: 0 auto;
}

.sleep-form-card h2 {
    font-size: clamp(1.8rem, 3.3vw, 2.4rem);
    text-align: center;
    white-space: normal;
}

.sleep-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.sleep-form-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #2d3e2b;
}

.sleep-form-card .form-empathy {
    margin: 0.4rem 0 1rem;
    color: #2f3c2e;
    font-style: italic;
}

.sleep-form-card input[type="text"],
.sleep-form-card input[type="email"] {
    width: 100%;
    border: 1px solid rgba(68, 102, 67, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.sleep-form-card input[type="text"]:focus,
.sleep-form-card input[type="email"]:focus {
    outline: none;
    border-color: var(--forest-calm);
    box-shadow: 0 0 0 3px rgba(68, 102, 67, 0.15);
}

.sleep-checkbox {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #344234;
}

.sleep-checkbox input {
    margin-top: 0.15rem;
}

.sleep-legal {
    font-size: 0.9rem;
    color: #3f4e3a;
    margin-top: 1rem;
}

.sleep-bottom-cta {
    padding: 3rem 0 4rem;
    text-align: center;
}

.sleep-bottom-cta p {
    margin: 0.6rem 0;
    color: #3b4a3a;
}

.sleep-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.sleep-links a {
    font-weight: 600;
}

/* Ograniczenie horyzontalnego przewijania i lepsze zachowanie na mobile */
.sleep-landing {
    max-width: 100%;
    overflow-x: hidden;
}

.sleep-landing img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 960px) {
    .sleep-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sleep-hero {
        padding-top: 3rem;
    }
}

@media (max-width: 640px) {
    .sleep-shell {
        padding: 0 1.2rem;
    }

    .sleep-card {
        align-items: flex-start;
    }

    .sleep-form-card {
        padding: 1.5rem;
    }
}

/* Dodatkowe poprawki mobilne dla landing page snu */
@media (max-width: 768px) {
    .sleep-hero {
        padding: 2.25rem 0 1.5rem;
    }

    .sleep-shell {
        padding: 0 1.35rem;
    }

    .sleep-landing nav {
        padding: 0 1.1rem;
        flex-wrap: wrap;
        gap: 0.6rem;
        align-items: center;
    }

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

    .nav-center,
    .nav-right {
        display: none;
        width: 100%;
    }

    .sleep-landing.mobile-menu-open nav {
        background: rgba(15, 23, 42, 0.92);
        border-radius: 18px;
        padding: 1rem;
    }

    .sleep-landing.mobile-menu-open .nav-center,
    .sleep-landing.mobile-menu-open .nav-right {
        display: flex;
    }

    .nav-center {
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.35rem 0;
        margin-top: 0.5rem;
    }

    .nav-center a {
        font-size: 0.9rem;
        gap: 0.35rem;
    }

    .nav-center a svg:first-child {
        width: 18px;
        height: 18px;
    }

    .nav-right {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .sleep-hero h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
        line-height: 1.08;
    }

    .sleep-hero .lead {
        font-size: 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .sleep-hero-bullets {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 0.85rem;
    }

    .sleep-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .sleep-cta-group .btn {
        width: 100%;
    }

    .sleep-form-card {
        padding: 1.6rem 1.4rem;
    }

    .form-alt-grid {
        gap: 1rem;
    }

    .sleep-form-section.alt .feature-steps {
        justify-content: center;
    }

    .sleep-hero h1 .no-wrap {
        white-space: normal;
    }

    .sleep-eyebrow {
        white-space: normal;
        font-size: 0.82rem;
        gap: 0.35rem;
        padding: 0.3rem 0.65rem;
    }

    .sleep-eyebrow svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 520px) {
    .sleep-shell {
        padding: 0 1.1rem;
    }

    .sleep-landing nav {
        padding: 0 0.8rem;
    }

    .sleep-hero {
        padding: 1.8rem 0 1.2rem;
    }

    .sleep-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
        line-height: 1.1;
    }

    .sleep-hero .lead {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .sleep-hero-bullets {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sleep-cta-group .btn {
        width: 100%;
    }

    .sleep-cta-secondary {
        width: 100%;
    }

    .sleep-form-card {
        padding: 1.4rem;
    }

    .sleep-form-grid {
        grid-template-columns: 1fr;
    }

    .sleep-legal {
        white-space: normal !important;
    }

    /* Fix for form quote on mobile */
    .form-quote {
        margin-left: 0;
        margin: 0.5rem auto;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    /* Center form intro elements */
    .form-alt-intro {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Force text center on mobile */
    .sleep-hero,
    .sleep-section,
    .sleep-form-section,
    .form-alt-intro h2,
    .form-highlight,
    .form-author,
    .sleep-feature-badge {
        text-align: center;
    }

    /* Center bullets on mobile explicitly */
    .sleep-hero-bullets li {
        justify-content: center;
        text-align: center;
    }
}