/* TipSep — Landing page */

.page-home {
    --public-cream: #f6f2eb;
    --public-ink: #1a1a1a;
    --public-muted: #6b6b6b;
    background: var(--public-cream);
    color: var(--public-ink);
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

html:has(body.page-home),
html:has(body.page-public) {
    overflow-x: clip;
}

.page-public {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-home .home-nav-shell,
.page-home .home-hero,
.page-home .home-section,
.page-home .home-api-section,
.page-home .home-stats,
.page-home .home-cta,
.page-home .home-footer,
.page-home .home-pricing-section,
.page-home .home-chat-section,
.page-home .home-faq-section {
    max-width: 100%;
    box-sizing: border-box;
}

.home-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ── Navigation (floating sticky header) ── */
:root {
    --home-nav-offset: 104px;
}

.home-nav-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 18px clamp(12px, 3vw, 24px) 0;
    pointer-events: none;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-nav-shell.scrolled {
    padding-top: 10px;
}

.home-nav {
    max-width: min(1180px, 100%);
    margin: 0 auto;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(26, 26, 26, 0.06);
    transition:
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 16px rgba(13, 27, 42, 0.06),
        0 20px 48px rgba(13, 27, 42, 0.12);
    transform: translateY(0);
}

.home-nav-inner {
    padding: 10px 12px 10px 22px;
    display: flex;
    align-items: center;
    gap: clamp(12px, 3vw, 24px);
    min-width: 0;
}

.home-nav-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    min-height: 42px;
    position: relative;
    z-index: 2;
}

.home-nav-brand--enter .brand-logo-link--nav {
    animation: homeLogoSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}

.home-nav-brand--enter.is-entered .brand-logo-link--nav {
    will-change: auto;
}

@keyframes homeLogoSlideIn {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="rtl"] .home-hero-slogan,
[dir="rtl"] .home-hero-headline,
[dir="rtl"] .home-hero-headline-fixed,
[dir="rtl"] .home-hero-typewriter {
    font-family: var(--font-arabic);
}

[dir="rtl"] .home-hero-typewriter-cursor {
    margin-left: 0;
    margin-right: 3px;
}

[dir="rtl"] .home-hero-desc-panel {
    max-width: min(860px, 94vw);
}

[dir="rtl"] .home-nav-brand--enter .brand-logo-link--nav {
    animation-name: homeLogoSlideInRtl;
}

@keyframes homeLogoSlideInRtl {
    from {
        opacity: 0;
        transform: translateX(32px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-nav-brand--enter .brand-logo-link--nav {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.home-nav-brand:empty {
    display: none;
}

.home-nav-links {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.home-nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.home-nav-links a:hover { color: var(--primary); }

.home-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.home-nav-toggle {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: var(--primary);
    line-height: 0;
}

.home-nav-toggle:hover,
.home-nav-toggle:focus-visible {
    color: var(--primary-hover);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-nav-toggle:focus-visible {
    outline: 2px solid var(--primary-soft);
    outline-offset: 3px;
    border-radius: 8px;
}

.home-nav-toggle-icon--close {
    display: none;
}

.home-nav-toggle[aria-expanded="true"] .home-nav-toggle-icon--open {
    display: none;
}

.home-nav-toggle[aria-expanded="true"] .home-nav-toggle-icon--close {
    display: block;
}

/* Mobile drawer (public site only) */
.home-nav-drawer {
    display: none;
}

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

/* ── Hero ── */
.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-carousel {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3050 50%, #0d1b2a 100%);
}

.home-hero-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3050 45%, #152a45 100%);
    pointer-events: none;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
    pointer-events: none;
}

.home-hero-video.is-ready {
    visibility: visible;
    transition: opacity 1s ease, visibility 0s;
}

.home-hero-video.is-ready.active {
    opacity: 1;
}

.home-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3050 50%, #0d1b2a 100%);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(13, 27, 42, 0.55) 0%,
            rgba(13, 27, 42, 0.68) 45%,
            rgba(13, 27, 42, 0.78) 100%
        );
}

.home-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 95% 75% at 50% 42%,
        rgba(13, 27, 42, 0.12) 0%,
        rgba(13, 27, 42, 0.45) 100%
    );
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 960px;
    color: #fff;
}

.home-hero-slogan {
    font-family: 'Plus Jakarta Sans', var(--font-sans);
    font-size: clamp(1.35rem, 3.4vw, 2.125rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    margin: 0 auto 18px;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.home-hero-slogan-accent {
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(135deg, #ffb347 0%, var(--primary) 45%, #ff7b2e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: none;
}

.home-hero-slogan-brand {
    font-weight: 700;
    color: #7dffb8;
    -webkit-text-fill-color: #7dffb8;
    text-shadow: none;
}

.home-hero-content h1 {
    font-family: 'Plus Jakarta Sans', var(--font-sans);
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.home-hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.02em;
    margin: 0 0 14px;
    text-shadow: none;
}

.home-hero-headline-fixed {
    display: block;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.home-hero-typewriter {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 1.2em;
    height: 1.2em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    color: var(--primary);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero-typewriter.is-fading {
    opacity: 0;
}

.home-hero-typewriter-text {
    color: #ff9a52;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ff9a52;
    filter: none;
    text-shadow: none;
}

.home-hero-typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    margin-left: 3px;
    background: var(--primary);
    border-radius: 2px;
    vertical-align: baseline;
    transform: translateY(0.06em);
    animation: heroCursorBlink 0.85s step-end infinite;
    box-shadow: none;
}

.home-hero-typewriter.is-fading .home-hero-typewriter-cursor {
    animation: none;
    opacity: 0;
}

@keyframes heroCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.home-hero-desc-panel {
    margin: 0 auto 28px;
    max-width: min(820px, 92vw);
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.home-hero-desc {
    font-size: clamp(15px, 1.75vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.97);
    margin: 0;
    font-weight: 450;
    letter-spacing: 0.005em;
    text-shadow: none;
    text-wrap: pretty;
}

.home-hero-desc strong { font-weight: 650; }

.home-hero-kw {
    color: rgba(255, 255, 255, 0.99);
    font-weight: 600;
}

.home-hero-kw--brand {
    color: #7dffb8;
    font-weight: 700;
    text-shadow: none;
}

.home-hero-kw--accent {
    color: #ffd08a;
    font-weight: 650;
    text-shadow: none;
}

.home-hero-desc strong.home-hero-kw--brand {
    color: #6ef0a8;
}

.home-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-btn);
}

.home-hero-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.home-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.home-hero-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ── Stats (home — metric cards) ── */
.home-stats {
    padding: 48px 0 56px;
    background: transparent;
    border-bottom: none;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-stats .metric-card {
    height: 100%;
}

.home-stat-value {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.home-stat-value .metric-card-value,
.home-stat-value .home-stat-count {
    display: inline;
    font-size: clamp(26px, 3vw, 32px);
}

.home-stat-suffix {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

/* ── Sections ── */
.home-section {
    padding: 88px 0;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
}

.home-section--alt { background: #fff; }

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.home-section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.home-section-head h2 span { color: var(--primary); }

.home-section-head p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Features ── */
.home-features-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 40px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

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

.home-features-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-self: center;
}

.home-feature-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature-card--compact {
    padding: 14px 14px 13px;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.home-feature-card--compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.home-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.home-feature-card--compact .home-feature-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.home-feature-icon svg { width: 26px; height: 26px; }
.home-feature-card--compact .home-feature-icon svg { width: 18px; height: 18px; }
.home-feature-icon--orange { background: var(--primary-light); color: var(--primary); }
.home-feature-icon--navy { background: #e8edf4; color: var(--navy); }
.home-feature-icon--green { background: #ecfdf5; color: var(--success); }
.home-feature-icon--blue { background: #eff6ff; color: var(--info); }
.home-feature-icon--wa { background: #dcf8e8; color: var(--whatsapp); }

.home-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}

.home-feature-card--compact h3 {
    font-size: 13px;
    margin: 0 0 5px;
    line-height: 1.3;
}

.home-feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.home-feature-card--compact p {
    font-size: 11px;
    line-height: 1.45;
}

.home-features-visual {
    margin: 0;
    position: relative;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.home-features-visual::before {
    content: '';
    position: absolute;
    inset: 8% 0 -8% 0;
    border-radius: 28px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--whatsapp) 12%, transparent));
    filter: blur(28px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.home-features-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.14),
        0 8px 20px rgba(15, 23, 42, 0.08);
}

.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(1) { transition-delay: 0.04s; }
.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(4) { transition-delay: 0.16s; }
.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.home-features-grid--compact .home-feature-card.animate-on-scroll:nth-child(6) { transition-delay: 0.24s; }

.animate-on-scroll--from-end {
    transform: translateX(0);
    opacity: 0;
}

.animate-on-scroll--from-end.visible {
    transform: translateX(0);
    opacity: 1;
}

[dir="rtl"] .animate-on-scroll--from-end {
    transform: translateX(0);
}

[dir="rtl"] .animate-on-scroll--from-end.visible {
    transform: translateX(0);
}

@media (min-width: 769px) {
    .animate-on-scroll--from-end {
        transform: translateX(24px);
        opacity: 0;
    }

    .animate-on-scroll--from-end.visible {
        transform: translateX(0);
        opacity: 1;
    }

    [dir="rtl"] .animate-on-scroll--from-end {
        transform: translateX(-24px);
    }

    [dir="rtl"] .animate-on-scroll--from-end.visible {
        transform: translateX(0);
    }
}

/* ── Services ── */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-service-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s;
}

.home-section--alt .home-service-card { background: var(--bg); }

.home-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.home-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.home-service-icon svg { width: 28px; height: 28px; }
.home-service-icon--wa { background: #dcf8e8; color: var(--whatsapp); }
.home-service-icon--orange { background: var(--primary-light); color: var(--primary); }
.home-service-icon--blue { background: #eff6ff; color: var(--info); }

.home-service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
}

.home-service-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Chat showcase ── */
.home-chat-section { overflow: hidden; }

.home-chat-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.home-chat-mockup {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.home-section-head--left {
    text-align: left;
    margin: 0 0 28px;
    max-width: none;
}

.home-chat-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.home-chat-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
    font-weight: 500;
}

.home-chat-point-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--whatsapp);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-chat-point-icon svg { width: 14px; height: 14px; }

.home-chat-mockup-window {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    min-height: 380px;
    max-width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--card);
}

.home-chat-mockup-sidebar {
    background: #0b141a;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-chat-mockup-search {
    height: 34px;
    border-radius: var(--radius-btn);
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.home-chat-mockup-conv {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.75);
}

.home-chat-mockup-conv.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.home-chat-mockup-conv strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.home-chat-mockup-conv p {
    margin: 0;
    font-size: 11px;
    opacity: 0.75;
    line-height: 1.35;
}

.home-chat-mockup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff8c42);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-chat-mockup-main {
    display: flex;
    flex-direction: column;
    background: #efeae2;
}

.home-chat-mockup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f2f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--navy);
}

.home-chat-mockup-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--whatsapp);
    margin-left: auto;
}

.home-chat-mockup-thread {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
}

.home-chat-bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.home-chat-bubble--in {
    align-self: flex-start;
    background: #fff;
    color: var(--navy);
    border-bottom-left-radius: 4px;
}

.home-chat-bubble--out {
    align-self: flex-end;
    background: #d9fdd3;
    color: var(--navy);
    border-bottom-right-radius: 4px;
}

.home-chat-mockup-compose {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 10px 14px;
    background: #fff;
    border-radius: var(--radius-btn);
    color: var(--muted);
    font-size: 13px;
}

.home-chat-mockup-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--whatsapp);
    margin-left: auto;
    flex-shrink: 0;
}

/* ── API developer section ── */
.home-api-section {
    position: relative;
    padding: 88px 0;
    background: #0d1118;
    color: #f8fafc;
    overflow: hidden;
    overflow-x: clip;
    scroll-margin-top: calc(var(--home-nav-offset) + 16px);
}

.home-api-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    overflow: hidden;
    max-width: 100%;
}

.home-api-bg-code {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 12px;
    border: none;
    background: transparent;
    color: rgba(148, 163, 184, 0.85);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(10px, 1.4vw, 14px);
    line-height: 1.7;
    white-space: pre-wrap;
    overflow: hidden;
    user-select: none;
    max-width: 100%;
}

@media (min-width: 769px) {
    .home-api-bg-code {
        inset: -10% -5%;
        transform: rotate(-4deg) scale(1.02);
    }
}

.home-api-showcase {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-api-visual,
.home-api-copy {
    min-width: 0;
    max-width: 100%;
}

.home-api-code-card {
    position: relative;
    background: #0f141d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 18px 18px 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    color-scheme: dark;
}

.home-api-code-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.home-api-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-api-pill--muted {
    color: #94a3b8;
}

.home-api-code-sample {
    margin: 0;
    padding: 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.65;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: pre;
    tab-size: 2;
}

.home-api-code-sample code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: block;
    min-width: max-content;
    white-space: pre;
}

.home-api-code-sample .tok-kw { color: #fb923c; }
.home-api-code-sample .tok-str { color: #c4b5fd; }

.home-api-gif-wrap {
    position: absolute;
    right: 16px;
    bottom: -20px;
    width: clamp(88px, 14vw, 120px);
    height: clamp(88px, 14vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 96, 0, 0.45);
    box-shadow: 0 12px 32px rgba(255, 96, 0, 0.25);
    background: #0d1118;
}

[dir="rtl"] .home-api-gif-wrap {
    right: auto;
    left: 16px;
}

.home-api-gif-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-api-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-api-title span {
    color: var(--primary, #ff6000);
}

.home-api-lead,
.home-api-doc-teaser {
    margin: 0 0 16px;
    font-size: clamp(15px, 2.2vw, 17px);
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.92);
    max-width: 52ch;
}

.home-api-doc-teaser {
    color: rgba(148, 163, 184, 0.95);
    font-size: 15px;
}

.home-api-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-api-btn-docs {
    background: #fff;
    color: #0d1118;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.home-api-btn-docs:hover {
    background: #f1f5f9;
    color: #0d1118;
}

.home-api-section .btn-primary {
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 96, 0, 0.35);
}

/* ── Benefits ── */
.home-benefits {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3050 100%);
    border-radius: var(--radius-xl);
    color: #fff;
}

.home-benefits h3 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 0 0 32px;
    letter-spacing: -0.02em;
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
}

.home-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.2s, border-color 0.2s;
}

.home-benefit-item:hover {
    background: rgba(255, 96, 0, 0.15);
    border-color: rgba(255, 96, 0, 0.35);
}

.home-benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin-top: 1px;
}

.home-benefit-icon svg { width: 24px; height: 24px; }

/* ── Audience (legacy) ── */
.home-audience {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3050 100%);
    border-radius: var(--radius-xl);
    color: #fff;
}

.home-audience h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px;
    font-weight: 600;
}

.home-audience-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-audience-item {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, border-color 0.2s;
}

.home-audience-item:hover {
    background: rgba(255, 96, 0, 0.2);
    border-color: var(--primary);
}

/* ── CTA ── */
.home-cta { padding: 0 0 88px; }

.home-cta-card {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 50%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.home-cta-card h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.home-cta-card p {
    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.home-cta--split {
    padding: 0 0 clamp(64px, 8vw, 96px);
}

.home-cta-card--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    text-align: start;
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
    border: 1px solid var(--saas-border, #eaeaea);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.06);
    overflow: hidden;
}

.home-cta-copy {
    min-width: 0;
}

.home-cta-card--split h2 {
    color: var(--saas-ink, #111);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.home-cta-card--split p {
    margin: 0 0 28px;
    max-width: 38ch;
    color: var(--saas-muted, #6b7280);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.home-cta-card--split .btn-lg {
    border-radius: 999px;
}

.home-cta-visual {
    min-width: 0;
}

.home-cta-visual-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--saas-border, #eaeaea);
    background: #f7f8fa;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.home-cta-visual-frame img {
    display: block;
    width: 100%;
    height: auto;
}

[dir="rtl"] .home-cta-card--split {
    text-align: start;
}

@media (max-width: 900px) {
    .home-cta-card--split {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 22px;
    }

    .home-cta-card--split p {
        margin-inline: auto;
    }

    .home-cta-card--split .btn-lg {
        width: 100%;
        max-width: 320px;
    }
}

/* ── Pricing ── */
.home-pricing-section {
    position: relative;
    overflow: hidden;
    overflow-x: clip;
    background: var(--bg);
}

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

.home-pricing-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.home-pricing-blob--1 {
    width: 420px;
    height: 420px;
    top: -80px;
    left: -120px;
    background: rgba(255, 96, 0, 0.18);
}

.home-pricing-blob--2 {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -80px;
    background: rgba(56, 189, 248, 0.2);
}

.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.home-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(13, 27, 42, 0.05),
        0 18px 40px rgba(13, 27, 42, 0.1);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 12px 24px rgba(13, 27, 42, 0.08),
        0 28px 56px rgba(13, 27, 42, 0.14);
}

.home-pricing-card--featured {
    transform: scale(1.05);
    z-index: 2;
    box-shadow:
        0 8px 16px rgba(255, 96, 0, 0.12),
        0 24px 48px rgba(13, 27, 42, 0.16);
}

.home-pricing-card--featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow:
        0 16px 32px rgba(255, 96, 0, 0.18),
        0 32px 64px rgba(13, 27, 42, 0.18);
}

.home-pricing-grid .home-pricing-card:nth-child(1) { transition-delay: 0s; }
.home-pricing-grid .home-pricing-card:nth-child(2) { transition-delay: 0.08s; }
.home-pricing-grid .home-pricing-card:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
    .home-pricing-card,
    .home-pricing-card--featured,
    .home-pricing-cta {
        transition: none;
    }
    .home-pricing-card:hover,
    .home-pricing-card--featured:hover {
        transform: none;
    }
}

.home-pricing-ribbon {
    position: absolute;
    top: 18px;
    left: -36px;
    z-index: 5;
    width: 140px;
    padding: 6px 0;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-pricing-card-header {
    position: relative;
    padding: 36px 24px 32px;
    text-align: center;
    color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-pricing-card--silver .home-pricing-card-header {
    background: linear-gradient(160deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
}

.home-pricing-card--gold .home-pricing-card-header {
    background: linear-gradient(160deg, #ffb347 0%, var(--primary) 45%, #e55500 100%);
}

.home-pricing-card--platinum .home-pricing-card-header {
    background: linear-gradient(160deg, #67e8f9 0%, #38bdf8 40%, #0284c7 100%);
}

.home-pricing-card-deco {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    opacity: 0.25;
    background: repeating-linear-gradient(
        180deg,
        transparent 0,
        transparent 6px,
        rgba(0, 0, 0, 0.15) 6px,
        rgba(0, 0, 0, 0.15) 8px
    );
}

.home-pricing-card-deco--left { left: 14px; }
.home-pricing-card-deco--right { right: 14px; }

.home-pricing-card-name {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.home-pricing-card-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-pricing-card-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.home-pricing-card-volume strong {
    display: block;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-pricing-card-volume span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.home-pricing-card-price {
    margin-bottom: 10px;
    text-align: center;
}

.home-pricing-card-price strong {
    display: block;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.price-display {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.price-display .price-amount {
    font-variant-numeric: tabular-nums;
}

.price-display .price-symbol {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.92;
}

.price-display--lg {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.register-pack-picker {
    margin-bottom: 24px;
}

.register-pack-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--card) 88%, var(--muted) 12%);
    margin-bottom: 14px;
}

.register-pack-switch-btn {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    cursor: pointer;
}

.register-pack-switch-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-pack-switch-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: calc(var(--radius-lg) - 4px);
    text-align: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.register-pack-switch-btn:hover .register-pack-switch-inner {
    background: color-mix(in srgb, var(--card) 70%, var(--primary) 30%);
}

.register-pack-switch-btn.is-active .register-pack-switch-inner {
    background: var(--card);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.register-pack-switch-btn--silver.is-active .register-pack-switch-inner { border-color: #7c3aed; }
.register-pack-switch-btn--gold.is-active .register-pack-switch-inner { border-color: var(--primary); }
.register-pack-switch-btn--platinum.is-active .register-pack-switch-inner { border-color: #0284c7; }

.register-pack-switch-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.register-pack-switch-popular {
    padding: 1px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-pack-switch-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.register-pack-switch-btn.is-active .register-pack-switch-price {
    color: var(--text);
}

.register-pack-showcase {
    display: none;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.register-pack-showcase.is-visible {
    display: block;
}

.register-pack-showcase--silver { border-top: 3px solid #7c3aed; }
.register-pack-showcase--gold { border-top: 3px solid var(--primary); }
.register-pack-showcase--platinum { border-top: 3px solid #0284c7; }

.register-pack-showcase-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 10px;
}

.register-pack-showcase-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.register-pack-showcase-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.register-pack-showcase-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.register-pack-showcase-volume strong {
    color: var(--text);
}

.register-pack-showcase-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.1;
}

.register-pack-showcase-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.register-pack-showcase-includes {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.register-pack-features-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.register-pack-features-compact li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text);
}

.register-pack-feature-icon {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: var(--primary);
}

.register-pack-showcase--silver .register-pack-feature-icon { color: #7c3aed; }
.register-pack-showcase--platinum .register-pack-feature-icon { color: #0284c7; }

.home-pricing-card-price span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.home-pricing-card-select {
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.home-pricing-card-select input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.home-pricing-card-select-mark {
    display: none;
}

.home-pricing-card--selected {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.home-pricing-grid--register {
    margin-bottom: 28px;
}

.home-pricing-grid--register .home-pricing-card {
    cursor: pointer;
}

.home-pricing-grid--register .home-pricing-card--featured {
    transform: scale(1.03);
}

.register-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.register-form-wrap {
    width: 100%;
}

.register-pricing-wrap {
    margin-bottom: 8px;
}

.register-form-card {
    margin-top: 8px;
}

.register-checkout-page .checkout-summary,
.register-checkout-page .checkout-client,
.register-checkout-page .checkout-payment-note {
    margin-bottom: 16px;
}

.checkout-summary-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.checkout-summary-list dt {
    font-weight: 600;
    color: var(--muted);
}

.checkout-summary-list dd {
    margin: 0;
}

.checkout-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.checkout-price .price-display--lg {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.checkout-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.checkout-features {
    margin: 0;
    padding-left: 18px;
}

.checkout-features li {
    margin-bottom: 8px;
}

.checkout-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.confirm-pack-summary {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin: 0 0 18px;
    text-align: left;
}

.pricing-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 8px;
}

.pricing-feature-row .span-2 {
    grid-column: span 2;
}

.home-pricing-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 32px;
    background: var(--card);
}

.home-pricing-includes {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.home-pricing-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}

.home-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.home-pricing-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 1px;
}

.home-pricing-card--silver .home-pricing-bullet { background: #7c3aed; }
.home-pricing-card--gold .home-pricing-bullet { background: var(--primary); }
.home-pricing-card--platinum .home-pricing-bullet { background: #0284c7; }

.home-pricing-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.home-pricing-cta:hover {
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-2px);
}

.home-pricing-cta--solid {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.home-pricing-cta--solid:hover {
    border-color: var(--primary-hover);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 10px 28px var(--primary-glow);
}

/* ── Footer (référence Stay Here adaptée TipSep) ── */
.home-footer {
    position: relative;
    overflow: hidden;
    background: var(--public-cream, #f6f2eb);
    color: var(--public-ink, #1a1a1a);
    padding: 72px 0 36px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.home-footer-deco {
    position: absolute;
    top: -120px;
    right: -40px;
    width: min(420px, 90vw);
    height: min(420px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 96, 0, 0.08) 0%, rgba(255, 96, 0, 0) 70%);
    pointer-events: none;
}

.home-footer-shell {
    position: relative;
    z-index: 1;
}

.home-footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.2fr 1.3fr;
    gap: 40px 32px;
}

.home-footer-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--public-muted, #6b6b6b);
}

.home-footer-kicker--spaced {
    margin-top: 22px;
}

.home-footer-divider {
    height: 1px;
    background: rgba(26, 26, 26, 0.1);
    margin: 22px 0 18px;
}

.home-footer-links,
.home-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-footer-links li,
.home-footer-contact li {
    margin-bottom: 10px;
}

.home-footer-links a,
.home-footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, padding-inline-start 0.2s ease;
}

.home-footer-links--bold a {
    font-size: 15px;
    font-weight: 700;
    color: var(--public-ink, #1a1a1a);
}

.home-footer-links--muted a {
    font-size: 14px;
    font-weight: 500;
    color: var(--public-muted, #6b6b6b);
}

.home-footer-links a:hover,
.home-footer-contact a:hover {
    color: var(--primary);
    padding-inline-start: 4px;
}

.home-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--public-muted, #6b6b6b);
}

.home-footer-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--primary);
}

.home-footer-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.home-footer-col--brand {
    padding-inline-start: 12px;
}

.home-footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    min-height: 44px;
    text-decoration: none;
}

.home-footer-brand .brand-logo--footer {
    filter: none;
    -webkit-filter: none;
}

.home-footer-brand .brand-logo-link--footer {
    justify-content: flex-start;
}

.home-footer-tagline {
    margin: 0 0 8px;
    max-width: 280px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--public-muted, #6b6b6b);
}

.home-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.06);
    color: var(--public-ink, #1a1a1a);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-footer-social-link svg {
    width: 18px;
    height: 18px;
}

.home-footer-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.home-footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.home-footer-copy {
    font-size: 13px;
    color: var(--public-muted, #6b6b6b);
}

/* ── Cookie consent ── */
.cookie-consent {
    position: fixed;
    right: max(24px, env(safe-area-inset-right, 0px));
    left: auto;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(460px, calc(100% - 48px));
    box-sizing: border-box;
    padding: 16px 18px;
    border-radius: 16px;
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Visitor chat widget ── */
.visitor-chat-widget {
    position: fixed;
    left: max(24px, env(safe-area-inset-left, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    max-width: calc(100% - 48px);
    box-sizing: border-box;
}

.visitor-chat-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px var(--primary-glow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visitor-chat-fab svg {
    width: 26px;
    height: 26px;
}

.visitor-chat-fab:hover,
.visitor-chat-fab.is-open {
    transform: translateY(-2px) scale(1.03);
}

.visitor-chat-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 96, 0, 0.35);
    animation: visitorChatPulse 2s ease-out infinite;
}

@keyframes visitorChatPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.visitor-chat-panel {
    position: absolute;
    left: 0;
    bottom: 72px;
    width: min(360px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.16);
    overflow: hidden;
}

.visitor-chat-panel.hidden {
    display: none;
}

.visitor-chat-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    background: var(--public-cream, #f6f2eb);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.visitor-chat-panel-head strong {
    display: block;
    font-size: 16px;
}

.visitor-chat-panel-head p {
    margin: 4px 0 0;
    font-size: 13px;
}

.visitor-chat-intro,
.visitor-chat-body {
    padding: 16px;
}

.visitor-chat-intro label {
    display: block;
    margin: 10px 0 6px;
    font-size: 13px;
    font-weight: 600;
}

.visitor-chat-intro input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

.visitor-chat-intro .btn {
    width: 100%;
    margin-top: 14px;
}

.visitor-chat-body.hidden,
.visitor-chat-intro.hidden {
    display: none;
}

.visitor-chat-messages {
    min-height: 220px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.visitor-msg {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.visitor-msg-in {
    align-self: flex-start;
    background: #f1f1f1;
    color: #1a1a1a;
}

.visitor-msg-out {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
}

.visitor-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}

.visitor-chat-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    font: inherit;
}

/* ── Site pages (About, FAQ, Legal…) ── */
.page-site {
    --public-cream: #f6f2eb;
    --public-ink: #1a1a1a;
    background: var(--public-cream);
}

.site-page {
    padding: calc(var(--home-nav-offset) + 32px) 0 48px;
    min-height: calc(100vh - var(--home-nav-offset) - 120px);
}

.site-page-inner {
    max-width: 820px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-page-title {
    margin: 0 0 24px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    scroll-margin-top: calc(var(--home-nav-offset) + 16px);
}

.site-page-content p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}

.site-page--legal .site-page-inner {
    max-width: 860px;
}

.site-page-updated {
    margin: -8px 0 28px;
    font-size: 14px;
    color: var(--muted);
}

.site-page-lead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px !important;
}

.site-legal-section {
    margin-bottom: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.site-legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.site-legal-section-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
    scroll-margin-top: calc(var(--home-nav-offset) + 16px);
}

.site-legal-section-subtitle {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.site-legal-list {
    margin: 0 0 16px;
    padding-left: 1.35rem;
    display: grid;
    gap: 8px;
}

.site-legal-list li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
}

[dir="rtl"] .site-legal-list {
    padding-left: 0;
    padding-right: 1.35rem;
}

.site-legal-contact {
    margin: 36px 0 8px;
    padding: 22px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--card) 92%, var(--primary) 8%);
}

.site-legal-contact-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.site-legal-contact-intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.site-legal-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-legal-contact-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 15px;
    line-height: 1.5;
}

.site-legal-contact-label {
    font-weight: 700;
    color: var(--navy);
    min-width: 88px;
}

.site-legal-contact-list a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.site-legal-contact-list a:hover {
    text-decoration: underline;
}

.site-page-back {
    margin-top: 32px;
}

/* ── Animations ── */
.home-hero-reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: homeHeroReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.home-hero-reveal--2 { animation-delay: 0.22s; }
.home-hero-reveal--3 { animation-delay: 0.38s; }
.home-hero-reveal--4 { animation-delay: 0.52s; }

@keyframes homeHeroReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .home-hero-typewriter-cursor {
        display: none;
    }

    .animate-on-scroll,
    .animate-on-scroll--from-end {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.animate-in {
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .home-features-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .home-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-features-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-services-grid { grid-template-columns: 1fr; }
    .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-chat-showcase { grid-template-columns: 1fr; gap: 36px; }
    .home-section-head--left { text-align: center; }
    .home-benefits-grid { grid-template-columns: 1fr; }
    .home-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 32px;
    }
    .home-pricing-card--featured { transform: none; }
    .home-pricing-card--featured:hover { transform: translateY(-10px); }
    .register-pack-switch {
        flex-direction: column;
    }
    .register-pack-switch-btn {
        flex: 1 1 auto;
    }
    .register-pack-switch-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }
    .register-pack-switch-name {
        justify-content: flex-start;
    }
    .register-pack-features-compact {
        grid-template-columns: 1fr;
    }
    .home-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
    .home-footer-col--brand {
        grid-column: span 2;
        padding-inline-start: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --home-nav-offset: 88px;
    }

    .home-nav-shell {
        padding: 12px 14px 0;
    }

    .home-nav {
        border-radius: 22px;
    }

    .home-nav.menu-open {
        border-radius: 22px;
    }

    .home-api-section {
        padding: 64px 0;
    }

    .home-api-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-api-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .home-nav-inner {
        padding: 10px 16px;
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }

    .home-nav-links,
    .home-nav-actions {
        display: none;
    }

    /* Icon only — no box border; opposite end from logo in LTR + RTL */
    .home-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin: 0;
        margin-inline-start: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 8px;
        border: 0 !important;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--primary);
    }

    .home-nav-toggle:hover,
    .home-nav-toggle:active {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .home-nav-toggle svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    [dir="rtl"] .home-nav-inner {
        padding: 10px 16px;
    }

    [dir="rtl"] .home-nav-brand {
        margin-inline-end: 0;
    }

    .home-nav-drawer {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 800;
        pointer-events: none;
        visibility: hidden;
        transition: visibility 0.28s ease;
    }

    .home-nav-drawer.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .home-nav-drawer-backdrop {
        position: absolute;
        inset: 0;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(13, 17, 24, 0.52);
        opacity: 0;
        transition: opacity 0.28s ease;
        cursor: pointer;
    }

    .home-nav-drawer.is-open .home-nav-drawer-backdrop {
        opacity: 1;
    }

    .home-nav-drawer-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(100%, 360px);
        height: 100%;
        max-height: 100dvh;
        background: #fff;
        box-shadow: -8px 0 40px rgba(13, 27, 42, 0.18);
        display: flex;
        flex-direction: column;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    [dir="rtl"] .home-nav-drawer-panel {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 8px 0 40px rgba(13, 27, 42, 0.18);
    }

    .home-nav-drawer.is-open .home-nav-drawer-panel {
        transform: translateX(0);
    }

    .home-nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border-light);
    }

    .home-nav-drawer-title {
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .home-nav-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--border-light);
        border-radius: 12px;
        background: var(--card);
        color: var(--navy);
        cursor: pointer;
    }

    .home-nav-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0 20px;
    }

    .home-nav-drawer-links a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        color: var(--navy);
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .home-nav-drawer-links a:hover,
    .home-nav-drawer-links a:focus-visible {
        background: var(--primary-light);
        color: var(--primary);
    }

    .home-nav-drawer-actions {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border-light);
    }

    .home-nav-drawer-lang {
        display: flex;
        justify-content: center;
        padding-bottom: 4px;
    }

    .home-nav-drawer-login,
    .home-nav-drawer-register {
        width: 100%;
        justify-content: center;
    }

    .home-api-showcase {
        grid-template-columns: 1fr;
    }

    .home-api-copy {
        order: -1;
    }

    .home-api-gif-wrap {
        position: static;
        margin: 16px auto 0;
    }

    .home-api-code-card {
        padding-bottom: 28px;
    }

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

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

    .cookie-consent {
        left: max(16px, env(safe-area-inset-left, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: 96px;
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        width: auto;
    }

    .visitor-chat-widget {
        left: 16px;
        bottom: 16px;
    }

    .home-features-showcase { gap: 28px; }
    .home-features-grid { grid-template-columns: 1fr; }
    .home-features-grid--compact { grid-template-columns: 1fr; }
    .home-features-visual { max-width: 100%; }
    .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero-cta { flex-direction: column; align-items: center; }
    .home-section { padding: 60px 0; }

    .home-hero-desc-panel {
        padding: 14px 18px;
        max-width: 100%;
        border-radius: 18px;
    }

    .home-hero-headline {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 12px;
        min-height: auto;
    }

    .home-hero-typewriter {
        min-height: 1.2em;
    }

    .home-hero-slogan {
        margin-bottom: 14px;
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
        padding: 12px 18px;
        max-width: 100%;
        border-radius: 16px;
    }

    .home-chat-mockup-window {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-chat-mockup-sidebar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .home-pricing-card--featured {
        transform: none;
    }

    .home-pricing-card--featured:hover {
        transform: translateY(-6px);
    }

    .home-hero {
        padding-left: clamp(16px, 4vw, 24px);
        padding-right: clamp(16px, 4vw, 24px);
    }

    .home-hero-content {
        max-width: 100%;
        padding-inline: 0;
    }

    .home-chat-mockup-conv { min-width: 180px; }

    .home-benefits { padding: 32px 20px; }
}

/* ── Hero blanc (option admin) ── */
.home-hero--white {
    background: #fff;
    min-height: min(92vh, 920px);
}

.home-hero-lite-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #faf8f5 55%, var(--public-cream, #f6f2eb) 100%);
    pointer-events: none;
}

.home-hero-lite-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
}

.home-hero-lite-orb--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -12%;
    right: -8%;
    background: rgba(255, 96, 0, 0.14);
}

.home-hero-lite-orb--2 {
    width: min(360px, 60vw);
    height: min(360px, 60vw);
    bottom: 8%;
    left: -10%;
    background: rgba(56, 189, 248, 0.12);
}

.home-hero-lite-orb--3 {
    width: min(280px, 50vw);
    height: min(280px, 50vw);
    top: 35%;
    left: 42%;
    background: rgba(255, 180, 120, 0.1);
    opacity: 0.35;
}

.page-home--hero-white .home-hero-content,
.home-hero--white .home-hero-content {
    color: var(--public-ink, #1a1a1a);
}

.home-hero--white .home-hero-slogan {
    color: var(--public-ink, #1a1a1a);
    text-shadow: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 8px 32px rgba(26, 26, 26, 0.06);
}

.home-hero--white .home-hero-slogan-brand {
    color: #0d9488;
    -webkit-text-fill-color: #0d9488;
}

.home-hero--white .home-hero-headline-fixed {
    color: var(--navy, #0d1b2a);
    text-shadow: none;
}

.home-hero--white .home-hero-typewriter-text {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.home-hero--white .home-hero-desc-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 10px 36px rgba(26, 26, 26, 0.06);
}

.home-hero--white .home-hero-desc,
.home-hero--white .home-hero-kw {
    color: var(--text-secondary, #4a5568);
}

.home-hero--white .home-hero-kw--brand {
    color: #0d9488;
}

.home-hero--white .home-hero-kw--accent {
    color: var(--primary);
}

.home-hero--white .btn-hero-outline {
    color: var(--navy, #0d1b2a);
    border-color: rgba(13, 27, 42, 0.2);
    background: #fff;
}

.home-hero--white .btn-hero-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light, #fff4eb);
    color: var(--primary);
}

/* ── Style lite (toutes sections) ── */
.page-home--lite {
    --home-lite-surface: #ffffff;
    --home-lite-muted-surface: #fafafa;
    --home-lite-border: rgba(26, 26, 26, 0.07);
    --home-lite-shadow: 0 4px 20px rgba(13, 27, 42, 0.05);
    background: #faf8f5;
}

.page-home--lite .home-stats {
    background: transparent;
}

.page-home--lite .home-section {
    padding: 72px 0;
}

.page-home--lite .home-section--alt {
    background: var(--home-lite-surface);
}

.page-home--lite .home-section:not(.home-section--alt):not(.home-pricing-section):not(.home-api-section) {
    background: transparent;
}

.page-home--lite .home-feature-card,
.page-home--lite .home-service-card {
    background: var(--home-lite-surface);
    border: 1px solid var(--home-lite-border);
    box-shadow: var(--home-lite-shadow);
}

.page-home--lite .home-feature-card--compact {
    box-shadow: none;
    background: var(--home-lite-muted-surface);
}

.page-home--lite .home-feature-card--compact:hover,
.page-home--lite .home-feature-card:hover,
.page-home--lite .home-service-card:hover {
    box-shadow: 0 12px 28px rgba(13, 27, 42, 0.08);
}

.page-home--lite .home-chat-section {
    background: var(--home-lite-muted-surface);
}

.page-home--lite .home-chat-mockup-window {
    box-shadow: var(--home-lite-shadow);
    border-color: var(--home-lite-border);
}

.page-home--lite .home-api-section {
    background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);
    color: var(--public-ink, #1a1a1a);
    overflow-x: clip;
}

.page-home--lite .home-api-bg {
    opacity: 0.06;
}

.page-home--lite .home-api-bg-code {
    color: rgba(13, 27, 42, 0.35);
}

.page-home--lite .home-api-title,
.page-home--lite .home-api-title span {
    color: var(--navy, #0d1b2a);
}

.page-home--lite .home-api-title span {
    color: var(--primary);
}

.page-home--lite .home-api-lead,
.page-home--lite .home-api-doc-teaser {
    color: var(--muted, #6b6b6b);
}

/* Keep API code preview in dark mode (even on lite/white homepage) */
.page-home--lite .home-api-code-card {
    background: #0f141d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(15, 20, 29, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-home--lite .home-api-code-sample {
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
}

.page-home--lite .home-api-code-sample .tok-kw { color: #fb923c; }
.page-home--lite .home-api-code-sample .tok-str { color: #c4b5fd; }

.page-home--lite .home-api-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.page-home--lite .home-api-btn-docs {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--home-lite-border);
}

.page-home--lite .home-api-btn-docs:hover {
    background: var(--primary-light, #fff4eb);
    border-color: rgba(255, 96, 0, 0.25);
}

.page-home--lite .home-api-section .btn-primary {
    box-shadow: 0 6px 18px rgba(255, 96, 0, 0.25);
}

.page-home--lite .home-benefits {
    background: var(--home-lite-surface);
    color: var(--public-ink, #1a1a1a);
    border: 1px solid var(--home-lite-border);
    box-shadow: var(--home-lite-shadow);
}

.page-home--lite .home-benefit-item {
    background: var(--home-lite-muted-surface);
    border: 1px solid var(--home-lite-border);
    color: var(--text, #1a1a1a);
}

.page-home--lite .home-benefit-item:hover {
    background: rgba(255, 96, 0, 0.06);
    border-color: rgba(255, 96, 0, 0.2);
}

.page-home--lite .home-pricing-section {
    background: #faf8f5;
}

.page-home--lite .home-pricing-blob {
    opacity: 0.2;
    filter: blur(70px);
}

.page-home--lite .home-pricing-card {
    box-shadow: var(--home-lite-shadow);
    border: 1px solid var(--home-lite-border);
}

.page-home--lite .home-cta {
    background: transparent;
}

.page-home--lite .home-cta-card {
    background: var(--home-lite-surface);
    border: 1px solid var(--home-lite-border);
    box-shadow: var(--home-lite-shadow);
}

.page-home--lite .home-footer {
    background: #fff;
    border-top: 1px solid var(--home-lite-border);
}

.page-home--lite .home-footer-deco {
    opacity: 0.5;
}

.page-home--lite .home-nav {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.06);
}

/* =========================================================
   SaaS Hero + Pricing (premium refresh)
   ========================================================= */

.page-home {
    --public-cream: #ffffff;
    --saas-bg: #ffffff;
    --saas-soft: #f7f8fa;
    --saas-ink: #111111;
    --saas-muted: #6b7280;
    --saas-border: #eaeaea;
    background: var(--saas-bg);
    color: var(--saas-ink);
}

:root {
    --home-nav-offset: 112px;
}

.home-nav-shell {
    padding: 22px clamp(14px, 3.5vw, 28px) 0;
}

.home-nav {
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 10px 40px rgba(17, 17, 17, 0.06);
    background: rgba(255, 255, 255, 0.96);
}

.home-nav.scrolled {
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.1);
}

.home-nav-inner {
    padding: 12px 14px 12px 22px;
    min-height: 64px;
}

.home-nav-action-login {
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    background: #fff !important;
    border-radius: 999px !important;
    font-weight: 650;
}

.home-nav-action-login:hover {
    background: var(--primary-light) !important;
    color: var(--primary-hover) !important;
}

.home-nav-action-register {
    border-radius: 999px !important;
}

/* ── Hero SaaS ── */
.home-hero.home-hero--saas {
    min-height: auto;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--home-nav-offset) + 28px) 0 72px;
    overflow: visible;
    background: #fff;
    color: var(--saas-ink);
}

.home-hero-saas-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(255, 96, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(13, 27, 42, 0.04) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.home-hero-saas-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.home-hero-saas-glow--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -8%;
    right: 8%;
    background: rgba(255, 96, 0, 0.12);
}

.home-hero-saas-glow--2 {
    width: min(340px, 45vw);
    height: min(340px, 45vw);
    bottom: 0;
    left: -4%;
    background: rgba(148, 163, 184, 0.16);
}

.home-hero-saas {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.home-hero-saas-copy {
    text-align: start;
    max-width: 620px;
    color: var(--saas-ink);
}

.home-hero--saas .home-hero-slogan {
    margin: 0 0 18px;
    max-width: none;
    padding: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--saas-muted);
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: none;
}

.home-hero--saas .home-hero-slogan-accent {
    font-style: normal;
    font-weight: 800;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.home-hero--saas .home-hero-slogan-brand {
    color: var(--saas-ink);
    -webkit-text-fill-color: var(--saas-ink);
}

.home-hero--saas .home-hero-headline {
    align-items: flex-start;
    gap: 0.08em;
    margin: 0 0 20px;
    text-align: start;
}

.home-hero--saas .home-hero-content h1,
.home-hero--saas .home-hero-headline {
    font-size: clamp(2.4rem, 5.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.home-hero--saas .home-hero-headline-fixed {
    color: var(--saas-ink);
    text-shadow: none;
}

.home-hero--saas .home-hero-typewriter {
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
    width: 100%;
    min-height: 1.2em;
    height: 1.2em;
    overflow: hidden;
}

.home-hero--saas .home-hero-typewriter-text {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    text-shadow: none;
    white-space: nowrap;
    display: inline-block;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: clip;
}

.home-hero--saas .home-hero-desc-panel {
    margin: 0 0 28px;
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-hero--saas .home-hero-desc {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.7;
    color: var(--saas-muted);
    text-shadow: none;
}

.home-hero--saas .home-hero-kw,
.home-hero--saas .home-hero-desc strong {
    color: #374151;
}

.home-hero--saas .home-hero-kw--brand,
.home-hero--saas .home-hero-desc strong.home-hero-kw--brand {
    color: var(--saas-ink);
}

.home-hero--saas .home-hero-kw--accent {
    color: var(--primary);
}

.home-hero--saas .home-hero-cta {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.home-hero--saas .home-hero-cta .btn-lg {
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
}

.home-hero--saas .btn-hero-outline,
.home-hero--saas .home-hero-cta-secondary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: #fff;
}

.home-hero--saas .btn-hero-outline:hover,
.home-hero--saas .home-hero-cta-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.home-hero-saas-visual {
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
    overflow: visible;
    padding-inline: 28px;
}

.home-hero-mockup {
    position: relative;
    width: min(100%, 460px);
    z-index: 1;
    overflow: visible;
}

.home-hero-mockup::before {
    content: '';
    position: absolute;
    inset: 12% -8% -6% 8%;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 96, 0, 0.12), rgba(13, 27, 42, 0.04));
    filter: blur(18px);
    z-index: 0;
}

.home-hero-mockup-frame {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--saas-border);
    box-shadow:
        0 4px 16px rgba(17, 17, 17, 0.04),
        0 28px 64px rgba(17, 17, 17, 0.1);
    transform: translateY(8px) rotate(0.4deg);
}

.home-hero-mockup-frame img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.home-hero-reveal--5 {
    animation-delay: 0.62s;
}

@keyframes homeHeroFloat {
    0%, 100% { transform: translateY(8px) rotate(0.4deg); }
    50% { transform: translateY(0) rotate(0.4deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-mockup-frame {
        animation: homeHeroFloat 6.5s ease-in-out infinite;
    }
}

[dir="rtl"] .home-hero-saas-copy,
[dir="rtl"] .home-hero--saas .home-hero-headline,
[dir="rtl"] .home-hero--saas .home-hero-cta,
[dir="rtl"] .home-hero--saas .home-hero-typewriter {
    text-align: start;
}

[dir="rtl"] .home-hero--saas .home-hero-cta {
    justify-content: flex-start;
}

/* ── Pricing SaaS ── */
.home-pricing-section--saas {
    background: var(--saas-soft);
    padding-top: clamp(64px, 8vw, 96px);
    padding-bottom: clamp(72px, 9vw, 110px);
    overflow: visible;
    overflow-x: clip;
}

.home-pricing-section--saas .home-pricing-bg {
    display: none;
}

.home-pricing-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--saas-border);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-pricing-head {
    text-align: center;
    margin-bottom: 40px;
}

.home-pricing-section--saas .home-section-head h2 {
    color: var(--saas-ink);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    letter-spacing: -0.03em;
}

.home-pricing-section--saas .home-section-head h2 span {
    color: var(--primary);
}

.home-pricing-section--saas .home-section-head p {
    color: var(--saas-muted);
    max-width: 520px;
    margin-inline: auto;
}

.home-pricing-section--saas .home-pricing-grid {
    gap: 22px;
    align-items: stretch;
    overflow: visible;
    padding-top: 12px;
}

.home-pricing-section--saas .home-pricing-card {
    border-radius: 28px;
    border: 1px solid var(--saas-border);
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.04);
    transform: none;
}

.home-pricing-section--saas .home-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.home-pricing-section--saas .home-pricing-card--featured,
.home-pricing-section--saas .home-pricing-card--gold.home-pricing-card--featured {
    border-radius: 28px;
    border: 1.5px solid var(--primary);
    box-shadow: 0 18px 44px rgba(255, 96, 0, 0.12);
    transform: translateY(-10px);
    z-index: 2;
}

.home-pricing-section--saas .home-pricing-card--featured:hover,
.home-pricing-section--saas .home-pricing-card--gold.home-pricing-card--featured:hover {
    transform: translateY(-14px);
    border-radius: 28px;
}

.home-pricing-section--saas .home-pricing-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    width: auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transform: none;
    box-shadow: none;
}

[dir="rtl"] .home-pricing-section--saas .home-pricing-ribbon {
    right: auto;
    left: 18px;
}

.home-pricing-section--saas .home-pricing-card-header {
    min-height: 0;
    padding: 32px 28px 8px;
    color: var(--saas-ink);
    background: transparent !important;
    align-items: flex-start;
    text-align: start;
}

.home-pricing-section--saas .home-pricing-card-deco,
.home-pricing-section--saas .home-pricing-card-icon {
    display: none;
}

.home-pricing-section--saas .home-pricing-card-name {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--saas-ink);
    text-transform: none;
}

.home-pricing-section--saas .home-pricing-card-price {
    margin: 8px 0 10px;
    text-align: start;
}

.home-pricing-section--saas .home-pricing-card-price strong {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    color: var(--saas-ink);
    letter-spacing: -0.04em;
}

.home-pricing-section--saas .home-pricing-card-price .price-display .price-symbol {
    color: var(--primary);
}

.home-pricing-section--saas .home-pricing-card-price span {
    margin-top: 4px;
    color: var(--saas-muted);
    opacity: 1;
    font-weight: 560;
}

.home-pricing-section--saas .home-pricing-card-volume {
    text-align: start;
}

.home-pricing-section--saas .home-pricing-card-volume strong {
    font-size: 0.95rem;
    font-weight: 650;
    color: #374151;
}

.home-pricing-section--saas .home-pricing-card-volume span {
    font-size: 0.85rem;
    color: var(--saas-muted);
    opacity: 1;
}

.home-pricing-section--saas .home-pricing-card-body {
    padding: 12px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-pricing-section--saas .home-pricing-includes {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--saas-muted);
    text-align: start;
}

.home-pricing-section--saas .home-pricing-features {
    margin-bottom: 24px;
}

.home-pricing-section--saas .home-pricing-features li {
    align-items: flex-start;
    gap: 10px;
    color: #374151;
}

.home-pricing-section--saas .home-pricing-bullet {
    display: none;
}

.home-pricing-section--saas .home-pricing-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}

.home-pricing-section--saas .home-pricing-check svg {
    width: 12px;
    height: 12px;
}

.home-pricing-section--saas .home-pricing-cta {
    margin-top: auto;
    border-radius: 999px;
    border: 1.5px solid var(--saas-border);
    background: #fff;
    color: var(--saas-ink);
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.home-pricing-section--saas .home-pricing-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.home-pricing-section--saas .home-pricing-cta--solid {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 96, 0, 0.22);
}

.home-pricing-section--saas .home-pricing-cta--solid:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

@media (max-width: 1024px) {
    .home-hero-saas {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-hero-saas-copy {
        max-width: 720px;
        margin-inline: auto;
        text-align: center;
    }

    .home-hero--saas .home-hero-headline,
    .home-hero--saas .home-hero-typewriter {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .home-hero--saas .home-hero-cta {
        justify-content: center;
    }

    .home-hero-mockup {
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .home-pricing-section--saas .home-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .home-pricing-section--saas .home-pricing-card--featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-nav {
        border-radius: 22px;
    }

    .home-nav-inner {
        min-height: 56px;
        padding: 10px 12px 10px 16px;
    }

    .home-hero.home-hero--saas {
        padding: calc(var(--home-nav-offset) + 12px) 0 48px;
    }

    .home-hero--saas .home-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero--saas .home-hero-cta .btn-lg {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-hero-mockup-frame {
        border-radius: 22px;
        transform: none;
        animation: none;
    }

    .home-pricing-section--saas .home-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }

    .home-pricing-section--saas .home-pricing-card--featured {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-mockup-frame {
        animation: none;
    }
}

/* ── Hero floating TipSep logos around mockup ── */
.home-hero-mockup {
    overflow: visible;
}

.home-hero-float-logos {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.home-hero-float-logo {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow:
        0 8px 22px rgba(17, 17, 17, 0.1),
        0 2px 6px rgba(255, 96, 0, 0.12);
    animation: homeHeroLogoFloat 3.8s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    will-change: transform;
}

.home-hero-float-logo img,
.home-hero-float-logo svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.home-hero-float-logo--tl { top: 8%; left: -18px; width: 46px; height: 46px; }
.home-hero-float-logo--tr { top: 14%; right: -20px; width: 50px; height: 50px; animation-duration: 4.4s; }
.home-hero-float-logo--ml { top: 46%; left: -28px; width: 56px; height: 56px; animation-duration: 4.1s; }
.home-hero-float-logo--mr { top: 42%; right: -26px; width: 48px; height: 48px; animation-duration: 3.6s; }
.home-hero-float-logo--bl { bottom: 16%; left: -14px; width: 44px; height: 44px; animation-duration: 4.8s; }
.home-hero-float-logo--br { bottom: 10%; right: -18px; width: 54px; height: 54px; animation-duration: 4.2s; }

.home-hero-float-logo--tl img,
.home-hero-float-logo--tl svg,
.home-hero-float-logo--bl img,
.home-hero-float-logo--bl svg { width: 26px; height: 26px; }

.home-hero-float-logo--ml img,
.home-hero-float-logo--ml svg,
.home-hero-float-logo--br img,
.home-hero-float-logo--br svg { width: 32px; height: 32px; }

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

[dir="rtl"] .home-hero-float-logo--tl { left: auto; right: -18px; }
[dir="rtl"] .home-hero-float-logo--tr { right: auto; left: -20px; }
[dir="rtl"] .home-hero-float-logo--ml { left: auto; right: -28px; }
[dir="rtl"] .home-hero-float-logo--mr { right: auto; left: -26px; }
[dir="rtl"] .home-hero-float-logo--bl { left: auto; right: -14px; }
[dir="rtl"] .home-hero-float-logo--br { right: auto; left: -18px; }

@media (max-width: 1024px) {
    .home-hero-float-logo--ml,
    .home-hero-float-logo--mr {
        display: none;
    }

    .home-hero-float-logo--tl { left: -8px; }
    .home-hero-float-logo--tr { right: -8px; }
    .home-hero-float-logo--bl { left: -4px; }
    .home-hero-float-logo--br { right: -4px; }
}

@media (max-width: 640px) {
    .home-hero-float-logo {
        width: 40px;
        height: 40px;
    }

    .home-hero-float-logo img,
    .home-hero-float-logo svg {
        width: 22px;
        height: 22px;
    }

    .home-hero-float-logo--bl,
    .home-hero-float-logo--br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-float-logo {
        animation: none;
    }
}

/* ── Home FAQ + contact (before CTA) ── */
.home-faq-section {
    position: relative;
    overflow: hidden;
    background: var(--saas-soft, #f7f8fa);
    padding-top: clamp(64px, 8vw, 96px);
    padding-bottom: clamp(64px, 8vw, 96px);
}

.home-faq-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(13, 27, 42, 0.055) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.9;
}

.home-faq-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
}

.home-faq-blob--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -80px;
    left: -100px;
    background: rgba(255, 96, 0, 0.14);
}

.home-faq-blob--2 {
    width: min(360px, 60vw);
    height: min(360px, 60vw);
    bottom: -90px;
    right: -80px;
    background: rgba(56, 189, 248, 0.14);
}

.home-faq-head {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.home-faq-eyebrow {
    display: inline-flex;
    margin: 0 auto 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--saas-border, #eaeaea);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-faq-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--saas-ink, #111);
}

.home-faq-head p {
    margin: 0 auto;
    max-width: 520px;
    color: var(--saas-muted, #6b7280);
}

.home-faq-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-faq-item {
    background: #fff;
    border: 1px solid var(--saas-border, #eaeaea);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-faq-item[open] {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--saas-border, #eaeaea));
    box-shadow: 0 12px 28px rgba(255, 96, 0, 0.08);
}

.home-faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--saas-ink, #111);
}

.home-faq-question::-webkit-details-marker {
    display: none;
}

.home-faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--saas-soft, #f7f8fa);
    color: var(--saas-muted, #6b7280);
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.home-faq-chevron svg {
    width: 16px;
    height: 16px;
}

.home-faq-item[open] .home-faq-chevron {
    transform: rotate(180deg);
    background: var(--primary-light);
    color: var(--primary);
}

.home-faq-answer {
    padding: 0 20px 18px;
}

.home-faq-answer p {
    margin: 0;
    padding-top: 2px;
    border-top: 1px solid var(--saas-border, #eaeaea);
    padding-top: 14px;
    color: var(--saas-muted, #6b7280);
    line-height: 1.65;
    font-size: 0.95rem;
}

.home-faq-contact-card {
    background: #fff;
    border: 1px solid var(--saas-border, #eaeaea);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
    position: sticky;
    top: calc(var(--home-nav-offset, 112px) + 12px);
}

.home-faq-contact-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--saas-ink, #111);
    letter-spacing: -0.02em;
}

.home-faq-contact-lead {
    margin: 0 0 20px;
    color: var(--saas-muted, #6b7280);
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-faq-contact-form .form-field {
    margin-bottom: 14px;
}

.home-faq-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 650;
    color: #374151;
}

.home-faq-contact-form input,
.home-faq-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--saas-border, #eaeaea);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    color: var(--saas-ink, #111);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-faq-contact-form input:focus,
.home-faq-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.home-faq-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.home-faq-contact-submit {
    width: 100%;
    border-radius: 999px !important;
    margin-top: 4px;
}

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

    .home-faq-contact-card {
        position: static;
    }
}

/*
 * Features orbit — 3-column layout matching mockup black boxes:
 * [ 3 cards left ] [ photo center ] [ 3 cards right ]
 */
.home-features-section {
    overflow: visible;
}

.home-features-orbit {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.home-features-orbit-stage {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(260px, 380px) minmax(180px, 1fr);
    align-items: center;
    gap: clamp(16px, 2.5vw, 36px);
    width: 100%;
    box-sizing: border-box;
}

.home-features-orbit-core {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    z-index: 1;
}

.home-features-orbit-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--saas-border, #eaeaea);
    box-shadow:
        0 10px 30px rgba(17, 17, 17, 0.06),
        0 28px 60px rgba(17, 17, 17, 0.1);
}

.home-features-orbit-visual--placeholder {
    aspect-ratio: 4 / 5;
    background: linear-gradient(160deg, #fff7f0, #f7f8fa);
}

.home-features-orbit-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.home-features-orbit-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 28px);
    min-width: 0;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
    padding: 8px 0;
    box-sizing: border-box;
}

.home-features-orbit-rail--left {
    align-items: stretch;
}

.home-features-orbit-rail--right {
    align-items: stretch;
}

/* Stagger like the black boxes on the mockup */
.home-features-orbit-rail--left .home-feature-float:nth-child(1) { transform: translateX(-6%); }
.home-features-orbit-rail--left .home-feature-float:nth-child(2) { transform: translateX(8%); }
.home-features-orbit-rail--left .home-feature-float:nth-child(3) { transform: translateX(-4%); }

.home-features-orbit-rail--right .home-feature-float:nth-child(1) { transform: translateX(6%); }
.home-features-orbit-rail--right .home-feature-float:nth-child(2) { transform: translateX(-8%); }
.home-features-orbit-rail--right .home-feature-float:nth-child(3) { transform: translateX(4%); }

.home-features-orbit-rail .home-feature-float {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0;
    padding: 14px 14px 12px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #ffb070, var(--primary, #ff6000) 45%, #ffc48a) border-box;
    box-shadow:
        0 10px 28px rgba(17, 17, 17, 0.08),
        0 2px 8px rgba(255, 96, 0, 0.06);
    animation: homeFeatureCardFloat 3.8s ease-in-out infinite;
    will-change: transform;
}

.home-features-orbit-rail--left .home-feature-float { margin-inline-start: auto; }
.home-features-orbit-rail--right .home-feature-float { margin-inline-end: auto; }

.home-features-orbit-rail .home-feature-float:nth-child(1) { animation-delay: 0s; animation-duration: 4s; }
.home-features-orbit-rail .home-feature-float:nth-child(2) { animation-delay: 0.8s; animation-duration: 3.7s; }
.home-features-orbit-rail .home-feature-float:nth-child(3) { animation-delay: 1.4s; animation-duration: 4.3s; }

.home-features-orbit-rail .home-feature-float:hover {
    box-shadow:
        0 14px 32px rgba(17, 17, 17, 0.1),
        0 2px 8px rgba(255, 96, 0, 0.1);
}

.home-features-orbit-rail .home-feature-float .home-feature-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
}

.home-features-orbit-rail .home-feature-float h3 {
    font-size: 0.88rem;
    margin: 0 0 5px;
    line-height: 1.25;
}

.home-features-orbit-rail .home-feature-float p {
    font-size: 0.72rem;
    line-height: 1.4;
    margin: 0;
    color: var(--saas-muted, #6b7280);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes homeFeatureCardFloat {
    0%, 100% { transform: translate(var(--stx, 0), 0); }
    50% { transform: translate(var(--stx, 0), -8px); }
}

.home-features-orbit-rail--left .home-feature-float:nth-child(1) { --stx: -6%; }
.home-features-orbit-rail--left .home-feature-float:nth-child(2) { --stx: 8%; }
.home-features-orbit-rail--left .home-feature-float:nth-child(3) { --stx: -4%; }
.home-features-orbit-rail--right .home-feature-float:nth-child(1) { --stx: 6%; }
.home-features-orbit-rail--right .home-feature-float:nth-child(2) { --stx: -8%; }
.home-features-orbit-rail--right .home-feature-float:nth-child(3) { --stx: 4%; }

[dir="rtl"] .home-features-orbit-rail--left .home-feature-float { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .home-features-orbit-rail--right .home-feature-float { margin-inline-end: 0; margin-inline-start: auto; }

/* Tablet */
@media (max-width: 1024px) {
    .home-features-orbit-stage {
        grid-template-columns: minmax(150px, 1fr) minmax(220px, 300px) minmax(150px, 1fr);
        gap: 14px;
    }

    .home-features-orbit-rail .home-feature-float {
        max-width: 200px;
        padding: 12px;
        border-radius: 14px;
    }

    .home-features-orbit-rail .home-feature-float .home-feature-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }

    .home-features-orbit-rail .home-feature-float h3 {
        font-size: 0.78rem;
    }

    .home-features-orbit-rail .home-feature-float p {
        font-size: 0.64rem;
    }
}

/* Mobile: image on top, then 2-col cards around (still not on the photo) */
@media (max-width: 720px) {
    .home-features-orbit {
        padding: 4px 0 28px;
    }

    .home-features-orbit-stage {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "photo photo"
            "left right";
        gap: 12px 10px;
        align-items: start;
    }

    .home-features-orbit-core {
        grid-area: photo;
        max-width: min(280px, 72vw);
        margin: 0 auto 8px;
    }

    .home-features-orbit-visual {
        border-radius: 20px;
    }

    .home-features-orbit-rail--left {
        grid-area: left;
        gap: 10px;
        padding: 0;
        height: auto;
        align-self: start;
    }

    .home-features-orbit-rail--right {
        grid-area: right;
        gap: 10px;
        padding: 0;
        height: auto;
        align-self: start;
    }

    .home-features-orbit-rail .home-feature-float,
    .home-features-orbit-rail--left .home-feature-float,
    .home-features-orbit-rail--right .home-feature-float {
        max-width: none;
        margin: 0;
        padding: 10px;
        border-radius: 12px;
        transform: none !important;
        --stx: 0;
    }

    .home-features-orbit-rail .home-feature-float .home-feature-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 5px;
    }

    .home-features-orbit-rail .home-feature-float .home-feature-icon svg {
        width: 14px;
        height: 14px;
    }

    .home-features-orbit-rail .home-feature-float h3 {
        font-size: 0.72rem;
        margin-bottom: 3px;
    }

    .home-features-orbit-rail .home-feature-float p {
        font-size: 0.6rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 420px) {
    .home-features-orbit-core {
        max-width: min(240px, 78vw);
    }

    .home-features-orbit-rail .home-feature-float p {
        display: none;
    }

    .home-features-orbit-rail .home-feature-float h3 {
        font-size: 0.68rem;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-features-orbit-rail .home-feature-float {
        animation: none !important;
        transform: translate(var(--stx, 0), 0);
    }
}

/* ── API section responsive (mobile-first overrides) ── */
@media (max-width: 1024px) {
    .home-api-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-api-copy {
        order: -1;
        text-align: center;
    }

    .home-api-lead,
    .home-api-doc-teaser {
        margin-inline: auto;
        max-width: 40rem;
    }

    .home-api-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .home-api-section {
        padding: 56px 0;
    }

    .home-api-section .home-container {
        padding-inline: clamp(14px, 4vw, 20px);
    }

    .home-api-bg {
        opacity: 0.12;
    }

    .home-api-bg-code {
        font-size: 10px;
        line-height: 1.55;
        padding: 10px;
        word-break: break-word;
    }

    .home-api-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.2;
    }

    .home-api-lead,
    .home-api-doc-teaser {
        font-size: 0.95rem;
        max-width: none;
    }

    .home-api-code-card {
        border-radius: 18px;
        padding: 14px 12px 18px;
        width: 100%;
    }

    .home-api-code-toolbar {
        gap: 6px;
        margin-bottom: 10px;
    }

    .home-api-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .home-api-code-sample {
        font-size: 11px;
        line-height: 1.55;
        padding: 10px 12px;
        border-radius: 12px;
        /* Keep scroll inside the card — never expand the page */
        max-width: 100%;
        overscroll-behavior-x: contain;
    }

    .home-api-gif-wrap {
        position: static;
        width: 88px;
        height: 88px;
        margin: 14px auto 0;
    }

    .home-api-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 22px;
    }

    .home-api-cta .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 999px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .home-api-section {
        padding: 48px 0;
    }

    .home-api-code-sample {
        font-size: 10.5px;
    }

    .home-api-gif-wrap {
        width: 72px;
        height: 72px;
    }
}
