:root {
    /* Recover app palette — paper-cut cream, navy, coral, teal */
    --primary: #DB4429;
    --primary-light: #E85A42;
    --primary-dark: #C23520;
    --primary-surface: linear-gradient(180deg, #E85A42 0%, #DB4429 55%, #C23520 100%);
    --secondary: #E8A849;
    --accent: #2A6575;
    --accent-light: #4A8FA0;
    --teal-pale: #B8D4DE;
    --navy: #1A3342;
    --cream: #F7F2EA;
    --bg: #F7F2EA;
    --surface: #FFFCF8;
    --surface-variant: #F0EBE3;
    --text-primary: #1A3342;
    --text-secondary: #5C7280;
    --text-tertiary: #9CA3AF;
    --border: #E0D8CE;
    --error: #EF5350;

    --shadow-sm: 0 1px 2px rgba(26, 51, 66, 0.04), 0 4px 12px rgba(26, 51, 66, 0.04);
    --shadow-md: 0 4px 6px rgba(26, 51, 66, 0.05), 0 10px 20px rgba(26, 51, 66, 0.06);
    --shadow-lg: 0 12px 28px rgba(26, 51, 66, 0.1);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-pill: 14px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 252, 248, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 216, 206, 0.7);
    z-index: 1000;
    padding: 0.9rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.25rem;
    color: var(--navy);
}

.nav-brand:hover {
    color: var(--navy);
    opacity: 0.9;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(224, 216, 206, 0.8);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
}

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

/* Hero */
.hero {
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 88% 8%, rgba(232, 168, 73, 0.18), transparent 60%),
        radial-gradient(ellipse 55% 50% at 8% 20%, rgba(184, 212, 222, 0.45), transparent 55%),
        var(--cream);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(219, 68, 41, 0.08);
    border: 1px solid rgba(219, 68, 41, 0.18);
    color: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 1.25rem;
    color: var(--navy);
}

.hero-text p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 34rem;
    line-height: 1.7;
}

.secondary-cta {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.secondary-cta a {
    font-weight: 700;
    color: var(--accent);
}

.secondary-cta a:hover {
    color: var(--navy);
}

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

.hero-phone {
    width: 100%;
    max-width: 280px;
}

.hero-visual img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    background: var(--surface);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-surface);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: var(--surface);
    border: 1.5px solid rgba(219, 68, 41, 0.45);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(219, 68, 41, 0.06);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.app-store-icon {
    font-size: 1.05rem;
}

.download-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Features */
.features {
    padding: 96px 0;
    background-color: var(--surface);
    border-top: 1px solid rgba(224, 216, 206, 0.7);
}

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

.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin-bottom: 0.85rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.6rem 1.5rem 1.7rem;
    background: var(--surface);
    border: 1px solid rgba(224, 216, 206, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:nth-child(2)::before {
    background: var(--secondary);
}

.feature-card:nth-child(3)::before {
    background: var(--accent);
}

.feature-card:nth-child(4)::before {
    background: var(--primary-light);
}

.feature-card:nth-child(5)::before {
    background: var(--accent-light);
}

.feature-card:nth-child(6)::before {
    background: var(--navy);
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    background: rgba(219, 68, 41, 0.08);
    border: 1px solid rgba(219, 68, 41, 0.14);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(232, 168, 73, 0.14);
    border-color: rgba(232, 168, 73, 0.28);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(42, 101, 117, 0.1);
    border-color: rgba(42, 101, 117, 0.22);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(219, 68, 41, 0.08);
    border-color: rgba(219, 68, 41, 0.14);
}

.feature-card:nth-child(5) .feature-icon {
    background: rgba(42, 101, 117, 0.1);
    border-color: rgba(42, 101, 117, 0.22);
}

.feature-card:nth-child(6) .feature-icon {
    background: rgba(26, 51, 66, 0.08);
    border-color: rgba(26, 51, 66, 0.14);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 750;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Footer */
.footer {
    background: var(--navy);
    color: #F7F2EA;
    padding: 72px 0 36px;
}

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

.footer-info .nav-brand {
    color: #FFFCF8;
    margin-bottom: 1.1rem;
}

.footer-info .nav-brand:hover {
    color: #FFFCF8;
}

.footer-info p {
    color: rgba(247, 242, 234, 0.72);
    max-width: 320px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.store-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    background: rgba(255, 252, 248, 0.08);
    border: 1px solid rgba(255, 252, 248, 0.16);
    border-radius: 10px;
    color: #FFFCF8;
    font-size: 0.88rem;
    font-weight: 700;
}

.badge-link:hover {
    background: rgba(219, 68, 41, 0.28);
    border-color: rgba(219, 68, 41, 0.5);
    color: #FFFCF8;
}

.badge-icon {
    width: 15px;
    height: 15px;
}

.footer-column h4 {
    margin-bottom: 1.1rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 750;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(247, 242, 234, 0.72);
    font-size: 0.92rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #FFFCF8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 252, 248, 0.12);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(247, 242, 234, 0.55);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(247, 242, 234, 0.55);
}

.footer-bottom a:hover {
    color: #FFFCF8;
}

/* Support / Policy pages */
.page-header {
    padding: 56px 0 48px;
    background:
        radial-gradient(ellipse 60% 80% at 90% 0%, rgba(184, 212, 222, 0.35), transparent 55%),
        var(--cream);
    border-bottom: 1px solid rgba(224, 216, 206, 0.8);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0;
}

.content-wrapper {
    max-width: 760px;
    margin: 0 auto 72px;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(224, 216, 206, 0.9);
    box-shadow: var(--shadow-sm);
}

.content-block {
    margin-bottom: 2.25rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-family: var(--font-body);
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 750;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
}

.content-block p,
.content-block li {
    color: var(--text-secondary);
}

.content-block ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.content-block li {
    margin-bottom: 0.45rem;
}

.delete-warning {
    background: rgba(219, 68, 41, 0.07);
    border: 1px solid rgba(219, 68, 41, 0.18);
    border-left: 3px solid var(--primary);
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
}

.delete-warning p {
    color: var(--primary-dark);
    margin-bottom: 0;
    font-weight: 600;
}

.btn-danger {
    background: var(--error);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: #e04845;
    transform: translateY(-2px);
    color: white;
}

.panel-centered {
    max-width: 560px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.panel-centered h1 {
    font-size: 1.75rem;
}

.panel-centered p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        padding: 64px 0 72px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-phone {
        max-width: 200px;
    }

    .download-group {
        justify-content: center;
    }

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

@media (max-width: 640px) {
    .navbar-content {
        flex-direction: column;
        gap: 0.85rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .features {
        padding: 72px 0;
    }
}
