/* ══════════════════════════════════════════════════════
   Arden Landing — styles.css
   Design: Minimalist, Apple-style, strong phone focus
══════════════════════════════════════════════════════ */

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

:root {
    /* Palette */
    --bg:          #F9F9F8;
    --fg:          #000000;
    --muted:       #4B5563;
    --border:      rgba(0,0,0,0.08);
    --card-bg:     #FFFFFF;
    --accent:      #D97849;
    --accent-dim:  rgba(217,120,73,0.12);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-pad: 120px;
    --section-pad-mobile: 80px;
    --container: 1200px;

    /* Radii */
    --r-phone: 44px;
    --r-card:  24px;

    /* Transitions */
    --ease: cubic-bezier(.25,.1,.25,1);
    --dur: 400ms;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ─── Layout Utilities ────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ─── Typography Scale ────────────────────────────── */
.hero-headline {
    font-family: var(--font);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--fg);
}

.section-headline {
    font-family: var(--font);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--fg);
}

.section-headline .text-muted {
    color: #6B7280;
}

.body-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 400;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ─── Buttons ──────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fg);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 34px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--dur) var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
    white-space: nowrap;
}
.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.btn-primary.btn-sm { font-size: 14px; padding: 10px 22px; }
.btn-primary.btn-xl { font-size: 18px; padding: 18px 48px; border-radius: 100px; }

.btn-ghost:hover {
    border-color: var(--fg);
    color: var(--fg);
    transform: translateY(-2px);
}

/* ─── Store Badges ─────────────────────────────────── */
.store-badge img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 300ms var(--ease), opacity 300ms;
}

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

.store-badges-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Navbar ───────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    transition: background 300ms var(--ease), backdrop-filter 300ms, border-bottom 300ms;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(249,248,246,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--fg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 200ms;
}

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

/* ─── Phone Image (screenshots already contain phone chrome) ── */
.phone-img {
    width: 280px;
    height: auto;
    display: block;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

/* ─── Hero Section ─────────────────────────────────── */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(217,120,73,0.07) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 20% 80%, rgba(200,180,160,0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-sub {
    font-size: 20px;
    line-height: 1.8;
    color: var(--muted);
}

.hero-supporting {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

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

/* Phone Rotator in Hero */
/* Hero phone wrap — positions rotator + dots */
.hero-phone-wrap {
    position: relative;
    display: inline-block;
}

.phone-rotator {
    position: relative;
    width: 280px;
}

.screen-slide {
    display: block;
    width: 280px;
    height: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
}

/* The active slide sizes the rotator */
.screen-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.rotation-dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 300ms, transform 300ms;
}

.dot.active {
    background: var(--fg);
    transform: scale(1.3);
}

/* ─── Tab Story Section ────────────────────────────── */
.step-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,0.3);
    padding: 3px 10px;
    background: rgba(0,0,0,0.05);
    border-radius: 100px;
    width: fit-content;
    transition: background 250ms, color 250ms;
}

.section-tabs {
    padding: 80px 0;
    background: var(--bg);
}

.section-tabs .section-header {
    margin-top: 0;
    margin-bottom: 32px;
}

.tabs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Left image panel */
.tab-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-phone-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-dots {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    transition: background 300ms, transform 300ms;
}

.tab-dot.active {
    background: var(--fg);
    transform: scale(1.3);
}

.tab-img {
    width: 280px;
    height: auto;
    display: block;
    position: absolute;
    opacity: 0;
    transform: scale(0.97) translateY(8px);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
    pointer-events: none;
}

.tab-img.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    position: relative;
    pointer-events: auto;
}

/* Right tab list */
.tab-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-item {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 250ms var(--ease), border-color 250ms var(--ease);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tab-item:hover {
    background: rgba(0,0,0,0.03);
}

.tab-item.active {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.tab-item.active .step-num {
    background: var(--accent-dim);
    color: var(--accent);
}

.tab-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    line-height: 1.3;
}

.tab-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 4px;
}

/* ─── Features Section (Most Apps Track Data) ──────── */
.section-features {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
    background: #f2f2f1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--r-card);
    padding: 40px;
    border: 1px solid var(--border);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #FFFFFF;
}

/* Use neutral classes instead of specific colors */
.icon-orange, .icon-blue, .icon-green { background: #000000; color: #FFFFFF; }

.feature-title {
    font-family: var(--font);
    font-size: 22px;
    font-weight: 600;
    color: var(--fg);
}

.feature-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* ─── Download CTA Section ─────────────────────────── */
.section-download {
    padding: var(--section-pad) 0;
    text-align: center;
}

.download-header {
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.download-header .hero-headline { max-width: 700px; }
.download-header .body-text     { max-width: 400px; }

.download-phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 72px;
}

.phone-raised { transform: translateY(-36px); }

/* Download section phone arrangement */
.phone-tilt-left  { transform: rotate(-4deg); }
.phone-tilt-right { transform: rotate(4deg); }
.phone-raised     { transform: translateY(-36px); z-index: 2; }
.download-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.launch-note {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ─── Footer ───────────────────────────────────────── */
#footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 200ms;
}
.footer-links a:hover { color: var(--fg); }

.footer-legal {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-legal p {
    font-size: 12px;
    color: rgba(130,130,120,0.7);
    text-align: center;
}

/* ─── Legal / Content Pages ───────────────────────── */
.section-legal {
    padding: 160px 0 100px;
    background: var(--bg);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.legal-content h2 {
    font-size: 24px;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
}

.legal-content p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.7;
}

.legal-content ul {
    margin: 24px 0;
    padding-left: 20px;
    color: var(--muted);
}

.legal-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.last-updated {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

/* ─── Support Page ───────────────────────────────── */
.section-support {
    padding: 160px 0 100px;
    background: var(--bg);
}

.support-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.support-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}

.support-form-card {
    background: var(--card-bg);
    padding: 48px;
    border-radius: var(--r-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.form-group input, .form-group textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #F9F9F8;
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: border-color 200ms;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--fg);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: rgba(0,0,0,0.02);
    padding: 32px;
    border-radius: var(--r-card);
    border: 1px solid var(--border);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-support { padding-top: 100px; }
}

/* ─── Waitlist Modal ─────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--r-card);
    padding: 48px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 300ms var(--ease);
    box-shadow: 0 32px 64px rgba(0,0,0,0.12);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 200ms;
}

.modal-close:hover {
    color: var(--fg);
}

.modal-title {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 32px;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#waitlist-form .form-group input {
    width: 100%;
}

.modal-options-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--fg);
}

.goal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.goal-btn {
    background: rgba(0,0,0,0.04);
    border: 1px solid transparent;
    padding: 10px 16px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 200ms var(--ease);
}

.goal-btn:hover {
    background: rgba(0,0,0,0.08);
    color: var(--fg);
}

.goal-btn.selected {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.modal-submit {
    width: 100%;
    margin-top: 8px;
}

.hidden {
    display: none !important;
}

#modal-success-view {
    text-align: center;
    padding: 16px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ─── Scroll Reveal ────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

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

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .nav-inner  { padding: 0 24px; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    /* Product Story Tabs - Stack vertically */
    .tabs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tab-visual {
        order: 1;
    }

    .tab-options {
        order: 2;
        gap: 8px;
    }

    .tab-item {
        align-items: center;
        text-align: center;
    }

    /* Features Grid - Stack vertically */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 32px;
    }

    .hero-text { align-items: center; }
    .hero-ctas { justify-content: center; }

    .hero-visual { order: 2; }

    .nav-links { display: none; }

    /* Story blocks — stack vertically */
    .story-block,
    .story-block--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: var(--section-pad-mobile);
    }

    .story-block .story-phone,
    .story-block--reverse .story-phone { order: 1; }
    .story-block .story-text,
    .story-block--reverse .story-text  { order: 2; text-align: center; align-items: center; }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-phones { gap: 16px; }

    .phone-img { width: 220px; }
    .phone-rotator { width: 220px; }
    .screen-slide { width: 220px; }
    .tab-img { width: 220px; }

    .phone-tilt-left  { transform: rotate(-3deg); }
    .phone-tilt-right { transform: rotate(3deg); }
    .phone-raised     { transform: translateY(-24px); }

    .section-hero { min-height: auto; padding-top: 64px; }

    .download-header .hero-headline { font-size: 36px; }

    /* Footer - Mobile Adjustments */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding-bottom: 40px;
    }

    .footer-links {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-legal {
        padding-top: 32px;
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .section-story, .section-why, .section-download {
        padding: var(--section-pad-mobile) 0;
    }

    .hero-headline { font-size: 36px; }
    .hero-sub      { font-size: 17px; }
    .btn-primary, .btn-ghost { font-size: 15px; padding: 13px 26px; }

    .download-phones { flex-direction: column; align-items: center; gap: 24px; }
    .phone-tilt-left,
    .phone-tilt-right,
    .phone-raised { transform: none; }
    .phone-img { width: 240px; }
    .phone-rotator { width: 240px; }
    .screen-slide { width: 240px; }
}
