/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
    /* Colors */
    --coral: #ff5c50;
    --coral-light: #ff8a65;
    --coral-dark: #e85d5d;
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Typography */
    --font-heading:
        "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* ========================================
   Container & Layout
   ======================================== */

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

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--coral);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-900);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-label {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    opacity: 0.9;
}

.btn-store {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   Hero Image / Phone Mockup
   ======================================== */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: var(--black);
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-900);
    border-radius: 2rem;
    overflow: hidden;
}

.app-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 10;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--section-padding);
    background: var(--white);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--section-padding);
    background: var(--coral);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--coral);
}

.footer-tagline {
    margin-top: 0.75rem;
    color: var(--gray-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.footer-column a svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .phone-mockup {
        width: 320px;
        height: 640px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0 8rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cta-title {
        font-size: 3rem;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image,
.feature-card {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-content {
    padding: var(--section-padding);
    min-height: calc(100vh - 400px);
    background: var(--white);
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.legal-wrapper h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.legal-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.legal-wrapper p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.legal-wrapper ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--gray-700);
}

.legal-wrapper li {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.legal-wrapper a {
    /*color: var(--coral);*/
    text-decoration: underline;
    transition: color 0.2s ease;
}

/*.legal-wrapper a:hover {
    color: var(--coral-dark);
}*/

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.legal-footer p {
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .legal-wrapper h1 {
        font-size: 2rem;
    }

    .legal-wrapper h2 {
        font-size: 1.5rem;
    }

    .legal-wrapper h3 {
        font-size: 1.25rem;
    }

    .legal-wrapper {
        padding: 1.5rem 1rem;
    }
}

/* Definition Lists (Legal Pages) */
dl {
    margin: 1.5rem 0;
    padding: 0;
}

dt {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    color: var(--gray-900);
}

dd {
    font-family: var(--font-body);
    margin: 0.35rem 0 0.75rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid var(--gray-200);
    color: var(--gray-700);
    line-height: 1.7;
}

/* Prevents extra spacing at the end */
dl *:last-child {
    margin-bottom: 0;
}
