/**
 * Picvelo — True Apple product page aesthetic
 * Reference: apple.com/macbook-pro, apple.com/iphone
 *
 * Rules followed:
 * - NO gradient glow orbs, NO colored blobs
 * - NO rounded icon badges with gradients
 * - NO purple/violet accents — only #2997ff blue for links
 * - NO pill buttons with glow shadows
 * - Typography IS the design. Giant headlines, gray subtext, blue links.
 * - Extreme whitespace. Let content breathe.
 * - Subtle animations only: opacity + small translateY
 */

/* ===== Base ===== */
.apple-landing {
    --black: #000000;
    --near-black: #1d1d1f;
    --gray: #86868b;
    --light-gray: #f5f5f7;
    --white: #fbfbfd;
    --blue: #2997ff;
    --blue-hover: #2dc0ff;
    --section-dark: #000000;
    --section-light: #f5f5f7;
    --nav-height: 44px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-size: 17px;
    line-height: 1.47059;
}

/* ===== Navigation — exact Apple style ===== */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--nav-height);
    background: rgba(22, 22, 23, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    max-width: 100%;
}

.apple-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1024px;
}

.apple-nav-logo {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    text-decoration: none;
    line-height: var(--nav-height);
    opacity: 0.92;
    transition: opacity 0.3s;
}
.apple-nav-logo:hover { opacity: 1; }

.apple-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.apple-nav-links a {
    display: block;
    padding: 0 12px;
    font-size: 12px;
    line-height: var(--nav-height);
    font-weight: 400;
    color: #f5f5f7;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.apple-nav-links a:hover { opacity: 1; }

/* Language switcher — inline text buttons */
.apple-nav-lang-group {
    display: flex;
    align-items: center;
    gap: 0;
}
.apple-nav-lang-btn {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(245, 245, 247, 0.45);
    text-decoration: none;
    padding: 4px 3px;
    transition: color 0.3s;
    line-height: 1;
}
.apple-nav-lang-btn:hover { color: rgba(245, 245, 247, 0.8); }
.apple-nav-lang-btn.is-active {
    color: #f5f5f7;
    font-weight: 600;
}
.apple-nav-lang-sep {
    font-size: 10px;
    color: rgba(245, 245, 247, 0.2);
    padding: 0 1px;
    user-select: none;
}

/* Mobile language switcher */
.apple-mobile-lang-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 0;
}
.apple-mobile-lang-btn {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(245, 245, 247, 0.4);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
}
.apple-mobile-lang-btn:hover {
    color: rgba(245, 245, 247, 0.7);
    background: rgba(245, 245, 247, 0.06);
}
.apple-mobile-lang-btn.is-active {
    color: #f5f5f7;
    font-weight: 600;
    background: rgba(245, 245, 247, 0.1);
}
.apple-nav-theme-btn {
    background: none;
    border: none;
    color: rgba(245, 245, 247, 0.8);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
    line-height: 1;
}
.apple-nav-theme-btn:hover { opacity: 1; }

/* Hamburger */
.apple-nav-burger {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.apple-burger-bar {
    display: block;
    width: 17px;
    height: 1px;
    background: #f5f5f7;
    margin: 0 auto;
    transition: transform 0.3s var(--ease), opacity 0.25s;
}
.apple-burger-bar + .apple-burger-bar { margin-top: 5px; }
.apple-nav.open .apple-burger-bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.apple-nav.open .apple-burger-bar:nth-child(2) { opacity: 0; }
.apple-nav.open .apple-burger-bar:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile menu */
.apple-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.apple-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.apple-mobile-panel {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #1d1d1f;
    padding: 0 48px 32px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0, 1);
}
.apple-mobile-overlay.is-open .apple-mobile-panel {
    transform: scaleY(1);
}
.apple-mobile-nav {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.apple-mobile-link {
    display: block;
    padding: 16px 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.apple-mobile-link:last-child { border-bottom: none; }
.apple-mobile-cta-wrap {
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.apple-mobile-cta-btn {
    display: block;
    padding: 12px 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}
.apple-mobile-settings {
    padding: 16px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 16px;
    align-items: center;
}
.apple-mobile-settings .apple-nav-theme-btn {
    font-size: 16px;
}
.apple-mobile-settings .apple-nav-lang {
    font-size: 16px;
    color: rgba(245,245,247,0.8);
}

/* ===== HERO ===== */
.apple-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 56px;
    background: var(--black);
}

.apple-hero-content {
    max-width: 780px;
}

/* Overline — small, gray, uppercase — like Apple's product labels */
.apple-hero-overline {
    font-size: 21px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(12px);
    animation: appleIn 0.7s var(--ease) 0.1s forwards;
}

/* Headline — the design IS the type */
.apple-hero-headline {
    font-size: clamp(56px, 9vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f5f5f7;
    margin: 0 0 20px;
    opacity: 0;
    transform: translateY(16px);
    animation: appleIn 0.7s var(--ease) 0.2s forwards;
}

/* No gradient text. Apple keeps highlight as plain white or uses a product image. */
.apple-hero-headline-gradient {
    color: #f5f5f7;
    /* Intentionally NO gradient — Apple doesn't do gradient text in headlines */
}

/* Subline */
.apple-hero-subline {
    font-size: clamp(19px, 2.5vw, 28px);
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: 0.007em;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 28px;
    opacity: 0;
    transform: translateY(12px);
    animation: appleIn 0.7s var(--ease) 0.35s forwards;
}

/* CTA — Apple uses plain text links, not pill buttons */
.apple-hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    transform: translateY(10px);
    animation: appleIn 0.7s var(--ease) 0.5s forwards;
}

/* Apple-style text link with arrow */
.apple-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 21px;
    font-weight: 400;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}
.apple-link:hover {
    text-decoration: underline;
}
.apple-link-arrow {
    display: inline-block;
    font-size: 21px;
    transition: transform 0.2s;
    font-style: normal;
}
.apple-link:hover .apple-link-arrow {
    transform: translateX(3px);
}

/* Compact pill button — used sparingly, like Apple's "Buy" */
.apple-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    background: var(--blue);
    border-radius: 980px;
    padding: 8px 22px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    /* NO glow, NO shadow — just clean */
}
.apple-btn-compact:hover {
    background: var(--blue-hover);
}

.apple-hero-note {
    font-size: 14px;
    color: var(--gray);
    margin-top: 24px;
    opacity: 0;
    animation: appleIn 0.7s var(--ease) 0.65s forwards;
}

@keyframes appleIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll reveal ===== */
.apple-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.apple-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section typography — shared ===== */
.apple-section-eyebrow {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    margin: 0 0 8px;
}
.apple-section-dark .apple-section-eyebrow { color: var(--gray); }
.apple-section-light .apple-section-eyebrow { color: var(--gray); }

.apple-section-headline {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-align: center;
    margin: 0 0 12px;
}
.apple-section-dark .apple-section-headline { color: #f5f5f7; }
.apple-section-light .apple-section-headline { color: var(--near-black); }

.apple-section-desc {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    line-height: 1.38;
    color: var(--gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}

.apple-section-link {
    text-align: center;
    margin-top: 16px;
}

/* ===== Section: Stats ===== */
.apple-stats-section {
    background: var(--black);
    padding: 100px 24px 120px;
}

.apple-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.apple-stat {
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.apple-stat:last-child { border-right: none; }

.apple-stat-number {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #f5f5f7;
    margin-bottom: 8px;
    /* NO gradient text — just white like Apple does */
}

.apple-stat-label {
    font-size: 17px;
    color: var(--gray);
}

/* ===== Section: Features ===== */
/*
 * Apple doesn't use icon cards. Each feature is a full-width section
 * with giant headline + subtext + image. We adapt this to a tile layout
 * but WITHOUT icon badges.
 */
.apple-features-section {
    background: var(--section-light);
    padding: 80px 24px 100px;
}

.apple-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.apple-feature-tile {
    position: relative;
    border-radius: 20px;
    padding: 52px 44px 52px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* No hover scale — Apple tiles don't bounce */
}

.apple-feature-tile-dark {
    background: var(--near-black);
}
.apple-feature-tile-light {
    background: #ffffff;
}

.apple-feature-tile-full {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.apple-feature-tile h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.14;
    margin: 0 0 8px;
}
.apple-feature-tile-dark h3 { color: #f5f5f7; }
.apple-feature-tile-light h3 { color: var(--near-black); }

.apple-feature-tile p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--gray);
    margin: 0 0 16px;
    max-width: 320px;
}
.apple-feature-tile-full p { max-width: 500px; }

.apple-feature-tile .apple-link {
    font-size: 17px;
}

/* ===== Section: How It Works ===== */
.apple-how-section {
    background: var(--black);
    padding: 120px 24px;
}

.apple-steps-container {
    max-width: 980px;
    margin: 60px auto 0;
}

.apple-step-row {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}
.apple-step-row:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.apple-step-num {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #f5f5f7;
    /* NO circle, NO gradient — just the number */
}

.apple-step-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.apple-step-text p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.47;
    margin: 0;
}

/* ===== Section: Comparison ===== */
.apple-compare-section {
    background: var(--section-light);
    padding: 120px 24px;
}

.apple-compare-table {
    max-width: 780px;
    margin: 60px auto 40px;
}

.apple-compare-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: center;
}
.apple-compare-row:first-child {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.apple-compare-label {
    font-size: 17px;
    color: var(--near-black);
}

.apple-compare-values {
    display: grid;
    grid-template-columns: 100px 100px;
    gap: 0;
    text-align: center;
}

.apple-compare-header {
    padding: 0 0 20px;
}
.apple-compare-header .apple-compare-values {
    font-size: 14px;
    font-weight: 600;
    color: var(--near-black);
}

.apple-compare-x {
    color: #d2d2d7;
    font-size: 15px;
}
.apple-compare-check {
    color: var(--near-black);
    font-size: 15px;
    font-weight: 600;
}

/* ===== Section: Testimonials ===== */
.apple-testimonials-section {
    background: var(--black);
    padding: 120px 24px;
}

.apple-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 60px auto 0;
}

.apple-testimonial-card {
    background: var(--near-black);
    border-radius: 20px;
    padding: 40px 32px;
    /* NO border, NO hover transform, NO glow */
}

.apple-testimonial-card blockquote {
    font-size: 19px;
    line-height: 1.42;
    color: #f5f5f7;
    font-weight: 400;
    font-style: normal;
    margin: 0 0 24px;
    /* Apple uses straight quotes, no italic */
}
.apple-testimonial-card cite {
    font-size: 14px;
    color: var(--gray);
    font-style: normal;
}
.apple-testimonial-card cite strong {
    color: #f5f5f7;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

/* ===== Section: Feature Blocks (split layout) ===== */
.apple-block-section {
    padding: 120px 24px;
}
.apple-section-dark { background: var(--black); }
.apple-section-light { background: var(--section-light); }

.apple-block-inner {
    max-width: 980px;
    margin: 0 auto;
}

.apple-block-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.apple-block-reverse { direction: rtl; }
.apple-block-reverse > * { direction: ltr; }

.apple-block-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 16px;
}
.apple-section-dark .apple-block-text h2 { color: #f5f5f7; }
.apple-section-light .apple-block-text h2 { color: var(--near-black); }

.apple-block-text p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--gray);
    margin: 0 0 24px;
}

.apple-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.apple-block-list li {
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}
.apple-section-dark .apple-block-list li {
    color: #f5f5f7;
    border-color: rgba(255,255,255,0.06);
}
.apple-section-light .apple-block-list li {
    color: var(--near-black);
    border-color: rgba(0,0,0,0.06);
}
.apple-block-list li:last-child { border-bottom: none; }
.apple-block-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.apple-block-visual {
    position: relative;
}
.apple-block-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--near-black);
}
.apple-block-card img {
    display: block;
    width: 100%;
    height: auto;
}
.apple-block-card-placeholder {
    padding: 56px 40px;
}
.apple-block-card-placeholder h3 {
    font-size: 28px;
    font-weight: 600;
    color: #f5f5f7;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.apple-block-card-placeholder p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.47;
    margin: 0;
}

/* ===== Band — big statement ===== */
.apple-band {
    background: var(--black);
    padding: 160px 24px;
    text-align: center;
    /* NO glow orb behind, NO gradient bg. Just black + white text. */
}
.apple-band-headline {
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #f5f5f7;
    max-width: 900px;
    margin: 0 auto 24px;
}
.apple-band-cta {
    margin-top: 20px;
}

/* ===== Replaces ===== */
.apple-replaces-section {
    background: var(--section-light);
    padding: 100px 24px;
}

.apple-replaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    max-width: 780px;
    margin: 48px auto 0;
}

.apple-replaces-item {
    padding: 16px 18px;
    font-size: 15px;
    color: var(--near-black);
    background: #fff;
    border-radius: 12px;
    text-align: center;
    /* NO hover effects, NO icons — just clean text tiles */
}

/* ===== Contact ===== */
.apple-contact-section {
    background: var(--black);
    padding: 120px 24px;
    text-align: center;
}
.apple-contact-text {
    font-size: 17px;
    line-height: 1.47;
    color: var(--gray);
    max-width: 500px;
    margin: 16px auto 0;
}
.apple-contact-email {
    margin-top: 20px;
}
.apple-contact-email a {
    color: var(--blue);
    text-decoration: none;
    font-size: 21px;
}
.apple-contact-email a:hover { text-decoration: underline; }

/* ===== Footer — Apple directory style ===== */
.apple-footer {
    background: var(--section-light);
    padding: 18px 22px 8px;
    font-size: 12px;
    line-height: 1.33;
    color: var(--gray);
}
.apple-footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d2d2d7;
}
.apple-footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 16px;
}
.apple-footer-col {
    padding: 0 8px;
}
.apple-footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--near-black);
    margin: 0 0 8px;
    letter-spacing: 0;
    text-transform: none;
}
.apple-footer-col a {
    display: block;
    font-size: 12px;
    color: var(--gray);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s;
}
.apple-footer-col a:hover { color: var(--near-black); text-decoration: underline; }

.apple-footer-legal {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 0 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.apple-footer-copyright {
    font-size: 12px;
    color: var(--gray);
}
.apple-footer-legal-links {
    display: flex;
    gap: 16px;
}
.apple-footer-legal-links a {
    font-size: 12px;
    color: var(--gray);
    text-decoration: none;
}
.apple-footer-legal-links a:hover { color: var(--near-black); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 833px) {
    .apple-nav-links,
    .apple-nav-controls { display: none; }
    .apple-nav-burger { display: block; }
    .apple-mobile-overlay { display: block; }

    .apple-features-grid { grid-template-columns: 1fr; }
    .apple-feature-tile { min-height: 280px; padding: 40px 28px; }
    .apple-compare-values { grid-template-columns: 80px 80px; }
    .apple-testimonials-grid { grid-template-columns: 1fr; }
    .apple-block-layout { grid-template-columns: 1fr; gap: 40px; }
    .apple-block-reverse { direction: ltr; }
    .apple-stats { grid-template-columns: 1fr; gap: 40px; }
    .apple-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 40px; }
    .apple-stat:last-child { border-bottom: none; padding-bottom: 0; }
    .apple-step-row { grid-template-columns: 60px 1fr; }
    .apple-step-img { display: none; }
    .apple-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .apple-mobile-panel { padding: 0 24px 24px; }
    .apple-mobile-link { font-size: 17px; padding: 12px 0; }
    .apple-mobile-cta-btn { font-size: 17px; padding: 8px 0; }
}

@media (max-width: 480px) {
    .apple-hero { padding: calc(var(--nav-height) + 24px) 20px 40px; }
    .apple-hero-headline { font-size: clamp(40px, 11vw, 56px); }
    .apple-hero-cta { flex-direction: column; gap: 12px; }
    .apple-replaces-grid { grid-template-columns: 1fr; }
    .apple-footer-grid { grid-template-columns: 1fr; }
    .apple-footer-legal { flex-direction: column; align-items: flex-start; }
    .apple-compare-table { overflow-x: auto; }
}

/* ===== Auth / Form Styles (for login, register, reset pages) ===== */
.apple-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.apple-auth-card {
    background: var(--near-black);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
}

.apple-auth-card h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--light-gray);
    margin: 0 0 8px;
    text-align: center;
}

.apple-auth-card .apple-auth-subtitle {
    font-size: 15px;
    color: var(--gray);
    margin: 0 0 28px;
    text-align: center;
}

.apple-auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(41, 151, 255, 0.12);
    color: var(--blue);
}

.apple-form-group {
    margin-bottom: 18px;
}

.apple-form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 8px;
}

.apple-form-input {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--light-gray);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.apple-form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.apple-form-input:focus {
    outline: none;
    border-color: var(--blue);
}

.apple-form-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    margin-top: 8px;
}
.apple-form-btn:hover {
    background: var(--blue-hover);
}

.apple-form-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--blue);
    text-decoration: none;
}
.apple-form-link:hover {
    text-decoration: underline;
}

.apple-form-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
}
.apple-form-links a {
    color: var(--blue);
    text-decoration: none;
}
.apple-form-links a:hover {
    text-decoration: underline;
}

.apple-form-error {
    padding: 12px 16px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    border-radius: 12px;
    color: #ff3b30;
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apple-form-success {
    padding: 12px 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.25);
    border-radius: 12px;
    color: #34c759;
    font-size: 14px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apple-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
    gap: 10px;
    margin: 12px 0;
}
.apple-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    flex-shrink: 0;
}

.apple-form-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
}

/* Modal overlay for forgot password (dark apple style) */
.apple-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.apple-modal-overlay.is-open {
    display: flex;
}
.apple-modal-card {
    background: var(--near-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
}
.apple-modal-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--light-gray);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.apple-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 24px;
    cursor: pointer;
}

/* Hero for inner pages (home.php) */
.apple-inner-hero {
    padding: calc(var(--nav-height) + 80px) 24px 60px;
    text-align: center;
}
.apple-inner-hero h1 {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--light-gray);
    margin: 0 0 16px;
    line-height: 1.05;
    opacity: 0;
    transform: translateY(16px);
    animation: appleIn 0.7s var(--ease) 0.2s forwards;
}
.apple-inner-hero p {
    font-size: 21px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.38;
    opacity: 0;
    transform: translateY(12px);
    animation: appleIn 0.7s var(--ease) 0.4s forwards;
}
.apple-inner-hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: translateY(10px);
    animation: appleIn 0.7s var(--ease) 0.6s forwards;
}
.apple-inner-hero-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 21px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 400;
}
.apple-inner-hero-links a:hover {
    text-decoration: underline;
}

@media (max-width: 734px) {
    .apple-auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .apple-auth-card h2 {
        font-size: 24px;
    }
    .apple-inner-hero {
        padding: calc(var(--nav-height) + 48px) 20px 40px;
    }
}

/* ===== Hero background image ===== */
.apple-hero--has-bg { position: relative; overflow: hidden; }
.apple-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0.4; z-index: 0; pointer-events: none; }
.apple-hero--has-bg .apple-hero-content { position: relative; z-index: 1; }

/* ===== Feature tile images ===== */
.apple-feature-tile--img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.apple-feature-tile--img.apple-feature-tile-dark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(29,29,31,0.5) 0%, rgba(29,29,31,0.92) 70%); border-radius: 20px; z-index: 0; }
.apple-feature-tile--img.apple-feature-tile-light::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.92) 70%); border-radius: 20px; z-index: 0; }
.apple-feature-tile--img > * { position: relative; z-index: 1; }

/* ===== Light section block card ===== */
.apple-section-light .apple-block-card { background: #ffffff; }

/* ===== Step images ===== */
.apple-step-img { border-radius: 12px; overflow: hidden; opacity: 0.9; }
.apple-step-img img { display: block; width: 100%; height: 120px; object-fit: cover; }

/* ===== Band background ===== */
.apple-band--has-bg { position: relative; overflow: hidden; }
.apple-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; z-index: 0; pointer-events: none; }
.apple-band--has-bg > *:not(.apple-band-bg) { position: relative; z-index: 1; }

/* ===== Lenis smooth scroll ===== */
html.lenis, html.lenis body {
    height: auto;
}
html.lenis {
    overscroll-behavior: none;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ===== GPU hint only on nav (always visible, single layer) ===== */
.apple-nav {
    will-change: transform;
}

/* ===== Reduced motion — kill all GSAP animations ===== */
@media (prefers-reduced-motion: reduce) {
    .apple-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .apple-hero-overline,
    .apple-hero-headline,
    .apple-hero-subline,
    .apple-hero-cta,
    .apple-hero-note,
    .apple-inner-hero h1,
    .apple-inner-hero p,
    .apple-inner-hero-links { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px 20px;
    background: rgba(22, 22, 23, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid #2a2a2d;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
}

.cookie-consent-banner.cookie-consent-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0s;
}

.cookie-consent-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-consent-text {
    color: #86868b;
    font-size: 13px;
    line-height: 1.5;
    flex: 1 1 300px;
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.cookie-consent-btn:hover { opacity: 0.85; }

.cookie-consent-accept {
    background: #2997ff;
    color: #fff;
}

.cookie-consent-decline {
    background: #333336;
    color: #f5f5f7;
}

.cookie-consent-settings {
    background: #333336;
    color: #f5f5f7;
}

.cookie-consent-save {
    background: #2997ff;
    color: #fff;
}

.cookie-consent-details {
    width: 100%;
    padding: 12px 0;
}

.cookie-category {
    display: block;
    color: #f5f5f7;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

.cookie-cat-desc {
    display: block;
    color: #86868b;
    font-size: 12px;
    margin-left: 22px;
}

.cookie-consent-policy {
    width: 100%;
    margin: 4px 0 0;
    font-size: 12px;
}

.cookie-consent-policy a {
    color: #2997ff;
}
