@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&display=swap');

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

:root {
    /* Wisp palette */
    --dawn-amber: #F4A261;
    --warm-peach: #FADCB0;
    --dusk-blue: #264653;
    --dusk-blue-light: #3A7A8C;
    --sky-blue: #7EB8D4;
    --sky-light: #B8DFF0;
    --cloud-gray: #D4D4D8;
    --cloud-light: #F0F0F2;
    --sage-green: #8CB369;
    --earth-brown: #6B5B4F;
    --warm-white: #FDFBF7;
    --warm-bg: #F7F3ED;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --alert-red: #DC6B5A;
    --success-green: #5B9A5F;
    --premium-gold: #D4A844;

    --max-width: 1120px;
    --max-width-narrow: 720px;

    /* iPhone frame */
    --phone-w: 280px;
    --phone-h: 607px;
    --frame-radius: 40px;
    --screen-radius: 34px;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--warm-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.site-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.scrolled .site-logo {
    color: var(--dusk-blue);
}

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

.site-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.site-nav a:hover {
    color: white;
}

.scrolled .site-nav a {
    color: var(--text-muted);
}

.scrolled .site-nav a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    color: white !important;
    backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.scrolled .nav-cta {
    background: var(--dusk-blue) !important;
    color: white !important;
}

.scrolled .nav-cta:hover {
    background: var(--dusk-blue-light) !important;
    color: white !important;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(
        180deg,
        #264653 0%,
        #3A7A8C 40%,
        #5FA3B5 65%,
        var(--warm-white) 100%
    );
    overflow: hidden;
    text-align: center;
}

/* Subtle cross-hatch texture */
.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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.hero-badge img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 em {
    font-style: italic;
    color: var(--warm-peach);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-description p {
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--dawn-amber);
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(244, 162, 97, 0.3);
}

.btn-primary:hover {
    background: #e89650;
    box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════
   PHONE SHOWCASE
   ═══════════════════════════════════════ */
.phone-showcase {
    padding: 0 0 6rem;
    background: var(--warm-white);
    position: relative;
}

.phone-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(95, 163, 181, 0.08), transparent);
    pointer-events: none;
}

.phone-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding: 0 1.5rem;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.phone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.phone-card:nth-child(2) {
    margin-top: -2rem;
}

.phone-label {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dusk-blue);
    letter-spacing: -0.01em;
}

.phone-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: -0.75rem;
}

/* iPhone Frame */
.iphone-frame {
    width: calc(var(--phone-w) + 12px);
    height: calc(var(--phone-h) + 12px);
    background: #1a1a1a;
    border-radius: var(--frame-radius);
    padding: 6px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.iphone-screen {
    width: var(--phone-w);
    height: var(--phone-h);
    border-radius: var(--screen-radius);
    overflow: hidden;
    position: relative;
    background: var(--warm-white);
}

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

/* ═══════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════ */
.features {
    padding: 5rem 0 6rem;
    background: var(--warm-bg);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cloud-gray), transparent);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dusk-blue-light);
    margin-bottom: 1rem;
}

.features-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.features-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    font-weight: 300;
}

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

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

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.feature-icon.amber {
    background: rgba(244, 162, 97, 0.12);
    color: var(--dawn-amber);
}

.feature-icon.blue {
    background: rgba(126, 184, 212, 0.15);
    color: var(--sky-blue);
}

.feature-icon.green {
    background: rgba(140, 179, 105, 0.15);
    color: var(--sage-green);
}

.feature-icon.brown {
    background: rgba(107, 91, 79, 0.1);
    color: var(--earth-brown);
}

.feature-icon.gold {
    background: rgba(212, 168, 68, 0.12);
    color: var(--premium-gold);
}

.feature-icon.red {
    background: rgba(220, 107, 90, 0.1);
    color: var(--alert-red);
}

.feature h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ═══════════════════════════════════════
   ACTIVITIES SHOWCASE
   ═══════════════════════════════════════ */
.activities-showcase {
    padding: 6rem 0;
    background: var(--warm-white);
}

.activities-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.activities-content .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dusk-blue-light);
    margin-bottom: 1rem;
}

.activities-content h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.activities-content > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.activity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--warm-bg);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.pill:hover {
    background: var(--cloud-light);
    border-color: rgba(0, 0, 0, 0.08);
}

.pill-icon {
    font-size: 0.95rem;
}

.activities-phone {
    display: flex;
    justify-content: center;
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(
        135deg,
        var(--dusk-blue) 0%,
        #3A7A8C 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 440px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    background: var(--warm-bg);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-brand span {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   CONTENT PAGES (Privacy, Terms)
   ═══════════════════════════════════════ */
.content-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(
        180deg,
        #264653 0%,
        #3A7A8C 60%,
        var(--warm-white) 100%
    );
    text-align: center;
}

.content-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.75rem;
    font-weight: 300;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 0.5rem;
}

.content-hero .last-updated {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.content-page {
    padding: 3rem 0 6rem;
    background: var(--warm-white);
}

.content-page .container {
    position: relative;
}

.prose {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.prose h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose a {
    color: var(--dusk-blue);
    text-decoration: underline;
    text-decoration-color: rgba(38, 70, 83, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.prose a:hover {
    text-decoration-color: var(--dusk-blue);
}

/* ═══════════════════════════════════════
   DOWNLOAD REDIRECT PAGE
   ═══════════════════════════════════════ */
.download-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        #264653 0%,
        #3A7A8C 50%,
        var(--warm-white) 100%
    );
    text-align: center;
    padding: 8rem 1.5rem 4rem;
}

.download-inner {
    max-width: 480px;
}

.download-inner .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.download-inner h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 1rem;
}

.download-inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    font-weight: 300;
}

.download-inner .coming-soon {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-inner > * {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-inner h1 { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }

.phone-card {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.phone-card:nth-child(1) { animation-delay: 0.5s; }
.phone-card:nth-child(2) { animation-delay: 0.65s; }
.phone-card:nth-child(3) { animation-delay: 0.8s; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .phone-row {
        gap: 2rem;
    }

    :root {
        --phone-w: 240px;
        --phone-h: 520px;
        --frame-radius: 36px;
        --screen-radius: 30px;
    }

    .activities-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .activities-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .phone-row {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .phone-card:nth-child(2) {
        margin-top: 0;
    }

    :root {
        --phone-w: 260px;
        --phone-h: 564px;
        --frame-radius: 38px;
        --screen-radius: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-header h2 {
        font-size: 2rem;
    }

    .site-nav a:not(.nav-cta) {
        display: none;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .content-hero h1 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .phone-row {
        padding: 0 1rem;
    }

    :root {
        --phone-w: 240px;
        --phone-h: 520px;
    }
}
