/* Curb landing — design tokens */
:root {
    --primary: #5B5BD6;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --accent-pink: #F472B6;
    --accent-amber: #F59E0B;
    --accent-emerald: #10B981;
    --accent-rose: #FB7185;

    --bg-start: #FAF5FF;
    --bg-end: #F0F9FF;
    --surface: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --text: #0F172A;
    --text-muted: #475569;
    --text-subtle: #64748B;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(91, 91, 214, 0.18), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 32px 64px -16px rgba(91, 91, 214, 0.24);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container-max: 1180px;
    --section-y: clamp(3rem, 6vw, 5.5rem);

    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Typography */
.h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text);
}

.h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}

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

.h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.55;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 100px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 18px -6px rgba(91, 91, 214, 0.6);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(91, 91, 214, 0.7);
}

.btn-secondary {
    background: white;
    color: var(--text);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--primary-light);
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(250, 245, 255, 0.7);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--border-light);
    background: rgba(255, 255, 255, 0.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}

.brand-mark {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 0.9rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Language switcher */
.lang-switch {
    position: relative;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-button:hover { border-color: var(--primary); }

.lang-button svg { color: var(--text-subtle); transition: transform 0.2s ease; }

.lang-switch[open] > .lang-button svg { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    min-width: 180px;
    z-index: 60;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text);
    transition: background 0.12s ease;
}

.lang-menu a:hover, .lang-menu a.is-current {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* Hero */
.hero {
    padding: clamp(3rem, 8vw, 5rem) 0 var(--section-y);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

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

.hero-content .h1 .accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content .lead {
    margin-top: 1.5rem;
    max-width: 36rem;
}

@media (max-width: 980px) {
    .hero-content .lead { margin-left: auto; margin-right: auto; }
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (max-width: 980px) {
    .hero-ctas { justify-content: center; }
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    color: var(--text-subtle);
    font-size: 0.9rem;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta-item svg {
    color: var(--accent-emerald);
}

@media (max-width: 980px) {
    .hero-meta { justify-content: center; }
}

/* Hero illustration — real iPhone screenshot in a clean device frame */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 980px) {
    .hero-visual { margin: 2.5rem auto 0; max-width: 260px; }
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at 50% 50%, rgba(91, 91, 214, 0.28), transparent 65%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.phone-frame {
    position: relative;
    width: 100%;
    background: #0F172A;
    border-radius: 48px;
    padding: 10px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15, 23, 42, 0.12);
    z-index: 1;
    animation: phone-bob 6s ease-in-out infinite;
}

.phone-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 38px;
}

/* Dynamic Island */
.phone-frame::before {
    content: "";
    position: absolute;
    top: 2.2%;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    aspect-ratio: 125 / 37;
    background: #000;
    border-radius: 9999px;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
}

@keyframes phone-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

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

/* Stats banner */
.stats {
    /* Solo top/bottom — left/right deben permanecer `auto` del .container */
    margin-top: calc(var(--section-y) * -0.3);
    margin-bottom: var(--section-y);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    color: white;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.stats-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    text-align: center;
}

@media (max-width: 720px) {
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

/* Features */
.section {
    padding: var(--section-y) 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header .lead {
    margin-top: 1rem;
}

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

@media (max-width: 980px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.3);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

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

/* Gradient backgrounds for feature icons */
.gradient-indigo { background: linear-gradient(135deg, #6366F1, #4338CA); }
.gradient-pink { background: linear-gradient(135deg, #F472B6, #DB2777); }
.gradient-amber { background: linear-gradient(135deg, #FBBF24, #D97706); }
.gradient-emerald { background: linear-gradient(135deg, #34D399, #059669); }
.gradient-sky { background: linear-gradient(135deg, #38BDF8, #0284C7); }
.gradient-rose { background: linear-gradient(135deg, #FB7185, #E11D48); }

/* Showcase / how it works */
.showcase {
    background: linear-gradient(180deg, transparent, rgba(91, 91, 214, 0.05) 50%, transparent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.step {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    position: relative;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

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

.plan {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan.is-featured {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%);
    border-color: rgba(91, 91, 214, 0.25);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.plan.is-featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.plan-price small {
    font-size: 1rem;
    color: var(--text-subtle);
    font-weight: 600;
}

.plan-tagline {
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features li svg {
    flex-shrink: 0;
    color: var(--accent-emerald);
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-summary {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    transition: color 0.15s ease;
}

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

.faq-summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-subtle);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
    transform: rotate(45deg);
}

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

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* CTA banner */
.cta-banner {
    /* Solo bottom — left/right deben permanecer `auto` del .container */
    margin-bottom: var(--section-y);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-card::before,
.cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.cta-card::before {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
}

.cta-card::after {
    width: 320px;
    height: 320px;
    bottom: -120px;
    right: -120px;
}

.cta-card > * { position: relative; }

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
    justify-content: center;
}

.cta-card .h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
}

.cta-card .btn-primary:hover {
    background: #F1F5F9;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 24rem;
    margin-top: 0.75rem;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-subtle);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}
