/* ========================================
   Learn2Play Website — Professional Landing Page
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a2463;
    --primary-dark: #071a4a;
    --primary-light: #1e3a7a;
    --accent: #22c55e;
    --accent-light: #4ade80;
    --bg: #ffffff;
    --bg-dark: #0a1628;
    --bg-card: #ffffff;
    --bg-card-dark: #0f1f3a;
    --text: #0a1628;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary), #1a3a6e);
    --gradient-subtle: linear-gradient(135deg, rgba(10,36,99,0.06), rgba(34,197,94,0.06));
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-header h2 {
    margin-top: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 12px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-subtle);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(10,36,99,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10,36,99,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--gradient-subtle);
    transform: translateY(-2px);
}

.btn-store {
    background: var(--bg-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    gap: 10px;
}

.btn-store div {
    text-align: left;
    line-height: 1.3;
}

.btn-store small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
    display: block;
}

.btn-store strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-store:hover {
    background: #2a2a3e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-apple svg,
.btn-google svg {
    flex-shrink: 0;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250,251,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    box-shadow: 0 4px 16px rgba(10,36,99,0.35);
    transform: translateY(-1px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Social links (nav) --- */
.nav-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition), transform var(--transition);
}

.nav-social a::after {
    display: none !important;
}

.nav-social a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

/* --- Language Toggle --- */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--border-light);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-light);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--text-secondary);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(10,36,99,0.15);
    top: -200px;
    right: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(10,36,99,0.10);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(34,197,94,0.08);
    top: 50%;
    left: 40%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-subtle);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(10,36,99,0.15);
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* --- Phone Mockup --- */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.phones-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 28px;
}

.phone-mockup {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.phone-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.phone-ios .phone-frame,
.phone-android .phone-frame {
    width: 240px;
    height: 490px;
    flex: 0 0 240px;
}

.phone-frame {
    background: #1a1a2e;
    border-radius: 40px;
    padding: 9px;
    box-shadow:
        0 30px 80px rgba(10,36,99,0.18),
        0 8px 24px rgba(0,0,0,0.08),
        inset 0 0 0 1.5px rgba(255,255,255,0.08);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.phone-frame:hover {
    transform: translateY(-8px);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #f5f5f5;
}

.phone-ios .phone-screen {
    background: #f5f5f7;
}

.phone-android .phone-screen {
    background: #dbe7f1;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
}

.platform-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

/* --- How It Works --- */
.how-it-works {
    padding: 120px 0;
    background: white;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    text-align: center;
    padding: 48px 36px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition);
    max-width: 320px;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10,36,99,0.2);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(10,36,99,0.3);
}

.step-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    color: var(--border);
    flex-shrink: 0;
    padding: 0 8px;
}

/* --- Features --- */
.features {
    padding: 120px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10,36,99,0.15);
}

.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    padding: 48px;
    background: var(--gradient-subtle);
    border-color: rgba(10,36,99,0.12);
}

.feature-large .feature-icon-wrap {
    grid-row: span 2;
    width: 72px;
    height: 72px;
}

.feature-large h3 {
    font-size: 1.4rem;
    align-self: end;
}

.feature-large p {
    grid-column: 2;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--gradient-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Dual Section (Parents / Children) --- */
.dual-section {
    padding: 120px 0;
    background: white;
}

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

.dual-card {
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.dual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dual-parents {
    background: linear-gradient(160deg, rgba(10,36,99,0.04), rgba(10,36,99,0.08));
    border-color: rgba(10,36,99,0.12);
}

.dual-children {
    background: linear-gradient(160deg, rgba(34,197,94,0.04), rgba(34,197,94,0.08));
    border-color: rgba(34,197,94,0.12);
}

.dual-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.dual-children .dual-icon {
    color: var(--success);
}

.dual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.dual-card ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dual-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dual-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.dual-parents li::before {
    background: var(--primary);
}

.dual-children li::before {
    background: var(--success);
}

/* --- Pricing --- */
.pricing {
    padding: 120px 0;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-single {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(10,36,99,0.12);
}

.pricing-featured:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,0.18);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    text-align: left;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-features li.included::before {
    background-color: rgba(34,197,94,0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
}

.pricing-features li.excluded {
    color: var(--text-light);
}

.pricing-features li.excluded::before {
    background-color: rgba(148,163,184,0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 0 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* --- Privacy --- */
.privacy-section {
    padding: 120px 0;
    background: white;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.privacy-text h2 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.privacy-text > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.privacy-points {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.privacy-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.privacy-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.privacy-point strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.privacy-point p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.privacy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-graphic {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- FAQ --- */
.faq {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff, #f8faff);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
    border-color: rgba(10,36,99,0.18);
    box-shadow: var(--shadow);
}

.faq-item.active {
    border-color: rgba(10,36,99,0.25);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.075rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: var(--radius);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0 28px 26px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer-inner a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(10,36,99,0.25);
    transition: border-color var(--transition);
}

.faq-answer-inner a:hover {
    border-color: var(--primary);
}

.faq-cta {
    text-align: center;
    margin-top: 48px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.faq-cta a {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(10,36,99,0.25);
    transition: border-color var(--transition);
}

.faq-cta a:hover {
    border-color: var(--primary);
}

/* --- Download CTA --- */
.download-section {
    padding: 120px 0;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(10,36,99,0.08);
    border-radius: 50%;
    top: -200px;
    left: -100px;
    filter: blur(80px);
}

.download-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(34,197,94,0.06);
    border-radius: 50%;
    bottom: -150px;
    right: -50px;
    filter: blur(80px);
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.download-section h2 {
    color: white;
    margin-bottom: 16px;
}

.download-section p {
    color: rgba(255,255,255,0.65);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.download-section .hero-buttons {
    justify-content: center;
}

.download-section .btn-store {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
}

.download-section .btn-store:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
}

/* --- Impressum Page --- */
.impressum-page {
    padding: 140px 0 80px;
    min-height: calc(100vh - 300px);
}

.impressum-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.impressum-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.impressum-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10,36,99,0.15);
}

.impressum-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.impressum-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.impressum-card a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition);
}

.impressum-card a:hover {
    color: var(--accent);
}

/* --- Legal Pages (Terms / Privacy) --- */
.legal-page {
    padding: 140px 0 80px;
    min-height: calc(100vh - 300px);
}

.legal-content {
    max-width: 880px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 48px 56px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-content .legal-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
    margin-top: 8px;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-content h4 {
    font-size: 1rem;
    color: var(--text);
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 14px;
    font-size: 0.97rem;
}

.legal-content ul,
.legal-content ol {
    margin: 10px 0 18px 24px;
    padding-left: 12px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 8px;
    font-size: 0.97rem;
    list-style: disc;
}

.legal-content ol li {
    list-style: decimal;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--accent);
}

.legal-content strong {
    color: var(--text);
}

.legal-content .legal-part {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.legal-content .legal-part:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content .legal-part-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-content address {
    font-style: normal;
    background: var(--gradient-subtle);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 12px 0 18px;
    border-left: 3px solid var(--primary);
    color: var(--text);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
    }

    .legal-content .legal-part-title {
        font-size: 1.4rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Language variant visibility driven by <html lang> the toggle sets */
html[lang="en"] .legal-de { display: none; }
html[lang="de"] .legal-en { display: none; }

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 0 32px;
    color: rgba(255,255,255,0.65);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-ios .phone-frame,
    .phone-android .phone-frame {
        width: 220px;
        height: 450px;
        flex: 0 0 220px;
    }

    .phones-wrapper {
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-large {
        grid-column: span 2;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .privacy-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .privacy-points {
        align-items: center;
    }

    .privacy-point {
        text-align: left;
        max-width: 400px;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-social {
        gap: 22px;
        padding-top: 16px;
        margin-top: 4px;
        border-top: 1px solid var(--border-light);
        width: 100%;
        justify-content: center;
    }

    .nav-social svg {
        width: 24px;
        height: 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .steps-grid {
        flex-direction: column;
        gap: 24px;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

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

    .feature-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .feature-large .feature-icon-wrap {
        grid-row: auto;
    }

    .feature-large h3 {
        align-self: auto;
    }

    .feature-large p {
        grid-column: 1;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .phone-ios .phone-frame,
    .phone-android .phone-frame {
        width: 180px;
        height: 368px;
        flex: 0 0 180px;
        border-radius: 32px;
    }

    .phone-frame {
        padding: 7px;
    }

    .phone-screen {
        border-radius: 26px;
    }

    .phones-wrapper {
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-store {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .impressum-content {
        grid-template-columns: 1fr;
    }

    .how-it-works,
    .features,
    .dual-section,
    .pricing,
    .privacy-section,
    .faq,
    .download-section {
        padding: 80px 0;
    }

    .faq-question {
        padding: 20px 22px;
        font-size: 1rem;
    }

    .faq-answer-inner p {
        padding: 0 22px 22px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .phone-ios .phone-frame,
    .phone-android .phone-frame {
        width: 150px;
        height: 306px;
        flex: 0 0 150px;
        border-radius: 28px;
    }

    .phone-frame {
        padding: 6px;
    }

    .phone-screen {
        border-radius: 23px;
    }

    .phones-wrapper {
        gap: 12px;
    }

    .phone-label {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .step-card {
        padding: 36px 24px;
    }

    .feature-card {
        padding: 28px;
    }

    .dual-card {
        padding: 32px 24px;
    }

    .pricing-card {
        padding: 36px 28px;
    }

    .lang-toggle {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* ========================================
   New homepage sections (2026 redesign)
   Hero CTA · Email challenge · Pain · Transformation ·
   Science · Trust · Privacy checks · Founding families
   ======================================== */

/* --- Larger CTA buttons --- */
.btn-lg {
    padding: 16px 34px;
    font-size: 1.05rem;
}

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

/* Honeypot anti-bot field — visually & functionally hidden from real users */
.hp-field {
    display: none !important;
}

/* --- Free code (email capture) --- */
.challenge {
    padding: 0 0 40px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.challenge-card {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.challenge-card::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(34,197,94,0.18);
    border-radius: 50%;
    filter: blur(80px);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.challenge-text {
    position: relative;
    z-index: 1;
}

.challenge-text h2 {
    color: white;
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    line-height: 1.25;
}

.challenge-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 26px;
}

.challenge-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    font-size: 0.95rem;
}

.challenge-benefits li.benefit-highlight {
    background: rgba(34,197,94,0.22);
    border: 1px solid rgba(34,197,94,0.55);
    border-radius: 999px;
    padding: 7px 16px 7px 9px;
    color: #fff;
    font-weight: 700;
}

.challenge-benefits li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(34,197,94,0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* The form sits on its own light panel so it reads as the one thing to do
   here, instead of dissolving into the gradient behind it. */
.challenge-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(4,14,38,0.32);
}

.challenge-gift {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}

.challenge-gift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(34,197,94,0.12);
    color: #15803d;
}

.challenge-gift-icon svg {
    width: 18px;
    height: 18px;
}

.challenge-form input[type="email"] {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid #dbe0ee;
    background: #f6f8fc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.challenge-form input[type="email"]::placeholder {
    color: var(--text-light);
}

.challenge-form input[type="email"]:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.22);
}

.challenge-form .btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--accent);
    color: #06281a;
    box-shadow: 0 6px 18px rgba(34,197,94,0.32);
}

.challenge-form .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 10px 26px rgba(34,197,94,0.42);
}

.challenge-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.challenge-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.challenge-status {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.2em;
    margin: 0;
}

.challenge-status.success {
    color: #15803d;
}

.challenge-status.error {
    color: #b91c1c;
}

.challenge-form.submitted input[type="email"],
.challenge-form.submitted .btn-primary,
.challenge-form.submitted .challenge-note,
.challenge-form.submitted .challenge-gift {
    display: none;
}

.challenge-form.submitted .challenge-status {
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 10px 0;
}

/* --- Referral Banner (shown via ?ref=CODE) --- */
.referral-banner {
    /* Top padding clears the fixed, transparent navbar. */
    padding: 96px 0 8px;
    position: relative;
    z-index: 3;
}

.referral-banner[hidden] {
    display: none;
}

.referral-banner.is-visible {
    animation: referralIn 0.55s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

/* When the banner is present, tuck the hero up so the two sit together. */
body.has-referral .hero {
    padding-top: 28px;
}

@keyframes referralIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.referral-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.referral-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    top: -140px;
    right: -60px;
    pointer-events: none;
}

.referral-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.referral-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    transform: rotate(90deg);
}

.referral-icon {
    flex-shrink: 0;
    font-size: 2.75rem;
    line-height: 1;
}

.referral-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.referral-headline {
    color: white;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin: 0;
}

.referral-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-top: 6px;
    max-width: 46ch;
}

.referral-actions {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-top: 20px;
}

.referral-code-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.referral-code-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.referral-code-box {
    display: inline-flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 4px 4px 4px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.referral-code {
    display: inline-flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    /* trailing letter-spacing adds phantom width on the right; pull it back */
    padding-right: calc(16px - 0.22em);
}

.referral-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    padding: 8px 18px;
    border: none;
    border-radius: calc(var(--radius-sm) - 4px);
    background: var(--accent);
    color: #06281a;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.referral-copy:hover {
    background: var(--accent-light);
}

.referral-copy.copied {
    background: var(--accent-light);
}

.referral-copy-label {
    line-height: 1;
}

.referral-cta {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .referral-banner {
        padding: 84px 0 4px;
    }

    .referral-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 22px;
    }

    .referral-icon {
        font-size: 2.25rem;
    }

    .referral-actions {
        width: 100%;
    }

    .referral-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .referral-code-box {
        width: 100%;
    }

    .referral-code {
        flex: 1;
        font-size: 1.15rem;
        letter-spacing: 0.16em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .referral-banner.is-visible {
        animation: none;
    }

    .referral-close:hover {
        transform: none;
    }
}

/* --- The Pain --- */
.pain {
    padding: 100px 0;
    background: var(--bg);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pain-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pain-emoji {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 16px;
}

.pain-card p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

/* --- The Transformation --- */
.transformation {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8faff, #ffffff);
}

.trans-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.trans-col {
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
}

.trans-before {
    background: linear-gradient(160deg, rgba(239,68,68,0.05), rgba(239,68,68,0.1));
    border-color: rgba(239,68,68,0.18);
}

.trans-after {
    background: linear-gradient(160deg, rgba(34,197,94,0.06), rgba(34,197,94,0.12));
    border-color: rgba(34,197,94,0.22);
}

.trans-col-head {
    margin-bottom: 24px;
}

.trans-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 100px;
}

.trans-before .trans-badge {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
}

.trans-after .trans-badge {
    background: rgba(34,197,94,0.18);
    color: #15803d;
}

.trans-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trans-col li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.trans-col li::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
}

.trans-before li::before {
    background-color: rgba(239,68,68,0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ef4444'%3E%3Cpath d='M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.75.75 0 1 1 1.06 1.06L9.06 8l3.22 3.22a.75.75 0 1 1-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 0 1-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
}

.trans-after li::before {
    background-color: rgba(34,197,94,0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
}

.trans-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* --- The Science --- */
.science {
    padding: 100px 0;
    background: var(--bg);
}

.science-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: var(--gradient-subtle);
    border: 1px solid rgba(10,36,99,0.12);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
}

.science-card h2 {
    margin-top: 14px;
    margin-bottom: 18px;
}

.science-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 28px;
}

.science-formula {
    display: inline-block;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 0;
}

.science-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
}

/* --- Trust --- */
.trust {
    padding: 100px 0 90px;
    background: white;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.trust-stat {
    text-align: center;
    padding: 32px 18px;
    border-radius: var(--radius);
    background: var(--gradient-subtle);
    border: 1px solid rgba(10,36,99,0.1);
}

.trust-stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-stat span {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-made {
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Testimonial template (currently commented out in index.html) */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px;
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.testimonial blockquote {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
}

.testimonial figcaption {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Privacy checks row --- */
.privacy-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.privacy-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(34,197,94,0.2);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 100px;
}

.privacy-check::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Founding Families --- */
.founding {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.founding::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(34,197,94,0.08);
    border-radius: 50%;
    filter: blur(80px);
    top: -150px;
    left: -80px;
}

.founding-card {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.founding-card .section-tag {
    background: rgba(255,255,255,0.12);
    color: white;
}

.founding-card h2 {
    color: white;
    margin-top: 16px;
    margin-bottom: 16px;
}

.founding-card > p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.founding-list {
    display: inline-flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin: 0 auto 36px;
}

.founding-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    font-weight: 500;
}

.founding-list li::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(34,197,94,0.25);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234ade80'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* --- Responsive: new sections --- */
@media (max-width: 1024px) {
    .challenge-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px;
    }

    .trans-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .trans-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .pain,
    .transformation,
    .science,
    .trust,
    .founding {
        padding: 72px 0;
    }

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

    .trust-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .challenge-card {
        padding: 32px 24px;
    }
}

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

    .hero-buttons .btn-lg {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .science-card {
        padding: 40px 24px;
    }

    .trans-col {
        padding: 32px 24px;
    }
}

/* ========================================
   Leo the Learning Lion — Mascot
   ======================================== */

@keyframes leo-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(-1.8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-leo,
    .meet-leo-img,
    .download-leo { animation: none; }
}

/* --- Hero companion --- */
.phones-stage {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.hero-leo {
    position: absolute;
    left: -70px;
    bottom: -26px;
    width: 196px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 18px 26px rgba(10,36,99,0.22));
    animation: leo-bob 5s ease-in-out infinite;
    pointer-events: none;
}

/* --- Meet Leo section --- */
.meet-leo {
    padding: 100px 0;
    background: var(--bg);
}

.meet-leo-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 56px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--gradient-subtle);
    border: 1px solid rgba(10,36,99,0.10);
    border-radius: var(--radius-lg);
    padding: 56px 64px;
}

.meet-leo-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.leo-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.20), rgba(10,36,99,0.08) 55%, transparent 72%);
    filter: blur(6px);
    z-index: 0;
}

.meet-leo-img {
    position: relative;
    z-index: 1;
    width: 300px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 34px rgba(10,36,99,0.20));
    animation: leo-bob 6s ease-in-out infinite;
}

.leo-speech {
    position: absolute;
    top: 6px;
    right: -6px;
    z-index: 2;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 16px 16px 16px 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.leo-speech::after {
    content: '';
    position: absolute;
    left: 18px;
    bottom: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: white;
    border-bottom: 0;
    filter: drop-shadow(0 1px 0 var(--border-light));
}

.meet-leo-text h2 {
    margin: 12px 0 16px;
}

.meet-leo-text > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 26px;
    max-width: 520px;
}

.meet-leo-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.meet-leo-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.meet-leo-points li::before {
    content: '';
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    box-shadow: 0 3px 8px rgba(34,197,94,0.35);
}

/* --- Download CTA companion --- */
.download-leo {
    width: 168px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
    animation: leo-bob 5.5s ease-in-out infinite;
}

/* --- Leo responsive --- */
@media (max-width: 1024px) {
    .meet-leo-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
        padding: 48px 40px;
    }

    .meet-leo-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .meet-leo-points {
        align-items: flex-start;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-leo {
        left: -36px;
        width: 156px;
        bottom: -18px;
    }
}

@media (max-width: 768px) {
    .meet-leo {
        padding: 72px 0;
    }

    .meet-leo-visual {
        min-height: 240px;
    }

    .meet-leo-img {
        width: 240px;
    }

    .leo-glow {
        width: 240px;
        height: 240px;
    }

    .hero-leo {
        width: 116px;
        left: -6px;
        bottom: -10px;
    }
}

@media (max-width: 480px) {
    .hero-leo {
        width: 90px;
        left: 0;
        bottom: -4px;
    }

    .meet-leo-card {
        padding: 36px 22px;
    }

    .meet-leo-img {
        width: 200px;
    }

    .download-leo {
        width: 140px;
    }
}


/* --- Newsletter unsubscribe confirmation overlay --- */
.unsub-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.unsub-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: unsubPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes unsubPop {
    from { opacity: 0; transform: scale(0.9) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.unsub-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unsub-icon-success { background: var(--success); }
.unsub-icon-error   { background: var(--error); }

.unsub-icon svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.unsub-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.unsub-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.unsub-close {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 36px;
    cursor: pointer;
    transition: var(--transition);
}

.unsub-close:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
