* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F8BBD0;
    --secondary: #9C27B0;
    --accent: #FF4081;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --background: #FAFAFA;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
    --gradient-soft: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    --card-shadow: 0 4px 24px rgba(233, 30, 99, 0.10);
    --border-radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

/* ── Header ── */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 5rem 2rem 6rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-subtext {
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
    margin-bottom: 0 !important;
    margin-top: 1rem;
}

/* ── Store Badges ── */
.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.badge-svg {
    display: block;
    width: 160px;
    height: 54px;
}

.store-badges-cta .badge-svg rect {
    fill-opacity: 0.15;
}

/* ── App Icon Hero ── */
.hero-visual {
    flex-shrink: 0;
}

.app-icon-wrapper {
    position: relative;
}

.app-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: rgba(255,255,255,0.12);
    border-radius: 40px;
    filter: blur(20px);
}

.app-icon-hero {
    width: 200px;
    height: 200px;
    border-radius: 44px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

/* ── Screenshots ── */
.screenshots-section {
    padding: 5rem 0 4rem;
    background: var(--gradient-soft);
    overflow: hidden;
}

.screenshots-section .section-title {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.screenshots-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0 2rem;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 calc(50vw - 580px);
    width: max-content;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.phone-frame {
    width: 220px;
    height: 476px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.5);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}

.screenshot-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ── Features ── */
.features {
    padding: 5rem 2rem;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--background);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.65;
}

/* ── How It Works ── */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--background);
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* ── Subscription ── */
.subscription {
    padding: 5rem 2rem;
    background: var(--white);
}

.subscription-plans {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-light);
    background: var(--white);
    transition: all 0.3s;
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, var(--primary-light) 0%, var(--white) 40%);
}

.plan-badge {
    background: var(--gradient);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.plan-period {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-gradient {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.35);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.45);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ── CTA ── */
.cta {
    padding: 6rem 2rem;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.store-badges-cta {
    justify-content: center;
}

/* ── Footer ── */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-section p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-section a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ── Deep Link Landing ── */
#deeplink-landing {
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: var(--white);
}

.deeplink-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(233, 30, 99, 0.2);
    margin-bottom: 1.5rem;
}

.deeplink-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: var(--text-dark);
}

.deeplink-message {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.deeplink-badges {
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.deeplink-subtext {
    font-size: 0.875rem;
    color: var(--text-light);
}

.deeplink-hint {
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 340px;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
    }

    .app-icon-hero {
        width: 150px;
        height: 150px;
        border-radius: 34px;
    }

    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .store-badges {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .cta h2 {
        font-size: 1.9rem;
    }

    .nav-links {
        display: none;
    }

    .screenshots-track {
        padding: 0 1.5rem;
    }

    .phone-frame {
        width: 175px;
        height: 380px;
    }

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

    .badge-svg {
        width: 145px;
        height: 49px;
    }
}

/* ── Savings Calculator ── */
.calc-section {
    padding: 5rem 2rem;
    background: var(--gradient-soft);
}

.calc-container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 40px rgba(233, 30, 99, 0.10);
    overflow: hidden;
}

/* Inputs row */
.calc-inputs {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.calc-field {
    flex: 1;
}

.calc-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calc-field-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calc-field-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 2.5ch;
    text-align: right;
}

/* Range slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--pct, 36.8%), #e5e7eb var(--pct, 36.8%), #e5e7eb 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

.calc-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Price input */
.calc-field-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 130px;
}

.calc-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    background: var(--background);
    transition: border-color 0.2s;
}

.calc-price-wrap:focus-within {
    border-color: var(--primary);
}

.calc-currency-sign {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-price-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    width: 70px;
}

.calc-price-input::-webkit-inner-spin-button,
.calc-price-input::-webkit-outer-spin-button {
    opacity: 1;
}

/* Savings hero */
.calc-hero {
    padding: 2.5rem;
    background: var(--gradient);
    text-align: center;
    color: var(--white);
}

.calc-hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.calc-hero-amount {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: opacity 0.2s;
}

.calc-hero-sub {
    font-size: 1rem;
    opacity: 0.85;
}

/* Platform bars */
.calc-platforms {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.calc-platform {
    display: grid;
    grid-template-columns: 200px 1fr 130px;
    align-items: center;
    gap: 1rem;
}

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

.calc-platform-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.calc-platform-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.calc-platform-model {
    font-size: 0.78rem;
    color: var(--text-light);
}

.calc-bar-track {
    background: #f3f4f6;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.calc-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.calc-bar-nailme {
    background: var(--gradient);
}

.calc-bar-other {
    background: #d1d5db;
}

.calc-bar-treatwell {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.calc-platform-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.calc-cost-mo {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.calc-cost-yr {
    font-size: 0.78rem;
    color: var(--text-light);
}

.calc-platform-nailme .calc-cost-mo {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Disclaimer */
.calc-disclaimer {
    padding: 1rem 2.5rem 2rem;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Responsive */
@media (max-width: 700px) {
    .calc-inputs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calc-field-price {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .calc-hero-amount {
        font-size: 2.75rem;
    }

    .calc-platform {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .calc-platform-cost {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .calc-bar-track {
        height: 8px;
    }
}

/* ── Utility ── */
.hidden {
    display: none;
}
