/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design tokens */
:root {
    /* Colors */
    --color-bg: #FFFDFB;
    --color-text: #000000;
    --color-text-dim: #4A4A4A;
    --color-white: #FFFFFF;
    --color-footer: #0B051D;

    /* Radii */
    --radius-cta: 8px;
    --radius-card: 10px;
    --radius-phone-top: 47px;

    /* Shadows */
    --shadow-s: 0 3px 8px rgba(0, 0, 0, 0.08);
    --shadow-m: 0 5px 10px rgba(0, 0, 0, 0.05);

    /* Typography (mobile-first) */
    --font-h1: 36px;
    --font-lead: 18px;
    --font-cta: 15px;

    /* Layout */
    --container-max: 1000px;

    /* Page gradient */
    --grad-1: #FFFDFB; /* light */
    --grad-2: #FFD6D1; /* blush */
    --grad-3: #F28AB2; /* rose */
    --grad-4: #7F3C98; /* plum */
    --grad-5: #0B051D; /* deep */
}

html {
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--grad-1);
    background-image: linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 28%, var(--grad-3) 50%, var(--grad-4) 75%, var(--grad-5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    /* Let the gradient track document height (no fixed attachment, no forced sizing) */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: auto 100%;
    background-position: top left;
    padding: 3rem 1rem;
    text-align: center;
}

/* High-resolution background no longer needed (light theme) */

.container {
    max-width: var(--container-max);
    width: 100%;
    margin: auto 0; /* Center vertically */
    padding: 2rem 1rem;
}

.app-icon {
    width: 120px; /* Slightly smaller */
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 22.5%; /* Standard iOS icon rounding */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: var(--font-h1);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.2;
    padding-bottom: 3rem;
}

/* Top navigation logo */
.nav .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.logo-wordmark { height: 18px; width: auto; }

/* Hero */
.hero .container { margin-top: 1rem; }
.hero .cta-top { margin: 0 auto 1rem auto; padding-bottom: 4rem;}


.pill-list { display: grid; gap: 14px; justify-items: center; margin: 16px 0 12px 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; color: var(--color-text); font-weight: 600; font-size: 16px; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.pill .emoji { width: 18px; text-align: center; }

/* stepped opacity for 13 items */
.pill:nth-child(1) { opacity: 1; }
.pill:nth-child(2) { opacity: .9; }
.pill:nth-child(3) { opacity: .8; }
.pill:nth-child(4) { opacity: .7; }
.pill:nth-child(5) { opacity: .6; }
.pill:nth-child(6) { opacity: .5; }
.pill:nth-child(7) { opacity: .45; }
.pill:nth-child(8) { opacity: .4; }
.pill:nth-child(9) { opacity: .35; }
.pill:nth-child(10) { opacity: .3; }
.pill:nth-child(11) { opacity: .2; }
.pill:nth-child(12) { opacity: .15; }
.pill:nth-child(13) { opacity: .1; }



/* Showcase */
.showcase .container {
    padding-top: 1rem;
    padding-bottom: 140px; /* reserve space for card overhang so CTA doesn't overlap */
}

.phone {
    position: relative;
    width: 350px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-top-left-radius: var(--radius-phone-top);
    border-top-right-radius: var(--radius-phone-top);
}

.phone-body {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 470px;
    background: linear-gradient(180deg, rgba(255,234,234,1) 0%, rgba(255,255,255,0) 96%);
    border: 4px solid transparent;
    background-clip: padding-box;
    border-top-left-radius: var(--radius-phone-top);
    border-top-right-radius: var(--radius-phone-top);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 0;
}

/* phone-fade removed per r7 */

.focus-cards { 
    position: absolute; 
    left: 24px; 
    right: 24px; 
    top: 36px; 
    display: grid; 
    gap: 18px; 
    z-index: 0; 
    margin-bottom: 1rem; 
}

.focus-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-s);
    overflow: hidden;
}
.focus-card__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 14px 16px 4px 16px; }
.focus-card__icon { display: inline-block; width: 16px; text-align: center; }
.focus-card__body { font-size: 13px; line-height: 1.52; color: var(--color-text); padding: 0 16px 12px 16px; text-align: left; }
.focus-card__footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.focus-card__link { font-weight: 600; font-size: 13px; text-decoration: none; }
.focus-card__info { font-size: 12px; opacity: .6; }

/* Accent bars (footer underline) */
.focus-card.accent-indigo .focus-card__footer { background: rgba(88,86,214,0.1); }
.focus-card.accent-red .focus-card__footer { background: rgba(255,59,48,0.1); }
.focus-card.accent-indigo .focus-card__link { color: #5856D6; }
.focus-card.accent-red .focus-card__link { color: #FF3B30; }
.focus-card.accent-green .focus-card__footer { background: rgba(52,199,89,0.12); }
.focus-card.accent-green .focus-card__link { color: #34C759; }
/* Title colors match accent */
.focus-card.accent-indigo .focus-card__title { color: #5856D6; }
.focus-card.accent-red .focus-card__title { color: #FF3B30; }
.focus-card.accent-green .focus-card__title { color: #34C759; }

/* Simple appear animation */
.appear { opacity: 0; transform: translateY(12px); animation: fadeUp .7s ease forwards; }
.appear:nth-child(2) { animation-delay: .15s; animation-duration: 1.3s;}
.appear:nth-child(3) { animation-delay: .25s; animation-duration: 1.8s;}

/* Make last card appear half off the phone */
.focus-cards .focus-card:nth-child(2) { transform: translateY(24px); }
.focus-cards .focus-card:nth-child(3) { transform: translateY(36px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Lead */
.lead .description { max-width: 700px; }

.description {
    font-size: var(--font-lead);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: #222222;
}

/* Inverse lead variant for darker gradient area */
.lead.lead--inverse .description {
    color: #FFFFFF;
    margin-bottom: 0;
}



.cta-button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: var(--font-cta);
    font-weight: 600;
    text-decoration: none;
    color: var(--color-white);
    background: #000000;
    border-radius: var(--radius-cta);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow-m);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: #111111;
}

/* CTA modifiers (base sizing controlled by --font-cta) */

.cta-button--light { 
    background: #FFFFFF; 
    color: #000000; 
    border: 1px solid rgba(0,0,0,0.1); 
}
.cta-button--light:hover { 
    background: #F7F7F7; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Footer */
.site-footer {
    display: none; /* hide for now since we don't have these pages ready */
    background: var(--color-footer);
    margin-top: 4rem;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
}
.site-footer .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    /* Move vertical padding to links for larger tap targets */
    padding-top: 0;
    padding-bottom: 0;
}
.site-footer a { 
    font-size:15px; 
    color: rgba(255,255,255,0.8); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 64px; 
    padding: 8px 12px; 
    border-radius: 8px; 
}
.site-footer a:hover { text-decoration: underline; }

/* Focus styles */
:focus-visible { outline: 2px solid #EB4A65; outline-offset: 2px; border-radius: 6px; }
.cta .container { text-align: center; }

@media (max-width: 640px) {
     body {
         padding: 2rem 1rem;
     }
    h1 {
        font-size: var(--font-h1);
        padding: 0;
    }
    
    .description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
     .cta-button {
         padding: 0.8rem 1.6rem;
         font-size: 1rem;
     }
} 

/* Larger breakpoints */
@media (min-width: 768px) {
    .container { padding-left: 3rem; padding-right: 3rem; }
}

@media (min-width: 1024px) {
    .hero .container { max-width: 900px; }
    h1 { font-size: clamp(36px, 3.5vw + 8px, 54px); }
    .description { font-size: clamp(18px, 1vw + 14px, 24px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cta-button { transition: none; }
    .cta-button:hover { transform: none; }
}