:root {
    --brand: #334155;
    --brand-2: #0ea5a6;
    --ink: #0f172a;
    --muted: #475569;
    --bg: #f7fafc;
    --card: #fff;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(2, 6, 23, .10);
    --hdr-h: 64px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

/* Shared Layout Utils */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 20px
}

.grid2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px
}

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

.kard {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px
}

/* Typography */
h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 800
}

h2 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 800
}

p {
    margin: 0 0 14px;
    color: var(--muted)
}

.highlight {
    color: var(--brand-2)
}

/* Buttons & Badges */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease;
    cursor: pointer;
}

.btn.primary {
    background: #111827;
    color: #fff;
    border: 1px solid #1f2937;
}

.btn.ghost {
    background: transparent;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.btn:hover {
    background: #f8fafc;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 2px solid rgba(14, 165, 166, .35);
    outline-offset: 2px;
}

.badge {
    font-size: .75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-badges .badge-app {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.store-badges a:hover .badge-app {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .store-badges {
        justify-content: center;
    }

    .store-badges .badge-app {
        height: 48px;
    }
}

/* Hero Section (Shared) */
.hero {
    background: linear-gradient(135deg, #111827, #334155);
    padding: 64px 0 32px;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__text {
    color: #fff
}

.hero__text h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

.hero__text p {
    color: #e6fffb;
    font-size: 1.1rem;
    margin: 20px 0;
}

.hero .tag {
    display: inline-block;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 12px
}

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

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

/* Stats (Shared) */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px
}

.stat {
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 16px;
    text-align: center;
    color: #0f172a
}

.stat strong {
    display: block;
    font-size: 22px
}

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

/* Device Mock (Shared) */
.device {
    width: min(520px, 90vw);
    aspect-ratio: 9/18;
    background: #0b1a3a;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    margin: 0 auto;
}

.device::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 20px;
    background: #081431;
    border-radius: 0 0 16px 16px
}

.screen {
    position: absolute;
    inset: 18px;
    background: #f8fafc;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.screen>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 980px) {
    .device {
        width: min(72vw, 360px);
    }

    .device.has-shot {
        width: 100%;
        max-width: 250px;
    }
}

/* Feature Cards (Shared) */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
    text-align: center;
}

.feature-card .icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Illo Frame (Shared consistent window style) */
.illo-frame {
    overflow: visible;
    max-width: 320px;
    margin: 0 auto;
}

.illo-header {
    display: none;
}

.illo-content {
    aspect-ratio: 9/16;
    position: relative;
    overflow: hidden;
}

.illo-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

/* CTA Final (Shared footer CTA) */
.cta-final {
    background: var(--color-primary, teal);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-final h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-final .btn {
    background: #fff;
    color: var(--color-primary, teal);
    font-weight: 800;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-final .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-final .store-badges {
    justify-content: center;
    margin-top: 32px;
}

/* Header & Nav */
.hdr {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(12px);
    background: color-mix(in srgb, #ffffff 75%, transparent);
    border-bottom: 1px solid #e5e7eb;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.hdr.is-scrolled {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .08);
}

.hdr__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #111827, #4b5563);
}

.logo-img {
    height: 32px;
    width: auto;
}

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

.nav a {
    position: relative;
    padding: 8px 2px;
    font-weight: 700;
    color: #0f172a;
    opacity: .9;
}

.nav a:hover {
    opacity: 1;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    scale: 0 1;
    transform-origin: left;
    transition: scale .25s ease;
}

.nav a:hover::after {
    scale: 1 1;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 16px rgba(2, 6, 23, .06);
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    padding: 10px 6px;
    border-radius: 10px;
    font-weight: 700;
    color: #0f172a;
}

.nav-mobile a:hover {
    background: #f1f5f9;
}

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

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

    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.ftr {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin-top: 24px
}

.ftr__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding-top: 24px
}

.ftr__col a {
    display: block;
    margin: 6px 0;
    color: #334155
}

.ftr__copy {
    padding: 12px 0;
    color: #64748b;
    border-top: 1px solid #e2e8f0
}

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

/* FAQ */
.faq {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin: 10px 0
}

.faq summary {
    cursor: pointer;
    font-weight: 700
}

/* Forms */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    color: var(--ink);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color .15s ease, background .15s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button[type="submit"] {
    border-radius: 12px;
    font-weight: 800;
    padding: 12px 16px;
    width: 100%;
    background: #0b766e;
    color: #fff;
    border: 1px solid #0b766e;
}

/* Animations */
.reveal,
.stagger>* {
    opacity: 0;
    transform: translateY(16px);
    will-change: opacity, transform;
}

.reveal.in,
.stagger.in>* {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .65, .2, 1);
}

.stagger.in>*:nth-child(1) {
    transition-delay: .05s
}

.stagger.in>*:nth-child(2) {
    transition-delay: .12s
}

.stagger.in>*:nth-child(3) {
    transition-delay: .18s
}

.stagger.in>*:nth-child(4) {
    transition-delay: .24s
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .stagger>* {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

/* Notice / Alertas (success & error) */
.notice {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.notice[hidden] {
    display: none;
}

.notice.success {
    display: block;
    border-color: #c7f5f0;
    background: #e7fbf8;
    color: #0b766e;
}

.notice.error {
    display: block;
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}