/* =============================================
   Socialize — Standalone Stylesheet
   Self-contained; does not depend on main.css
   ============================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

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

/* 2. CSS Variables
   ============================================= */
:root {
    /* Socialize app palette */
    --primary:       #F07456;  /* coral */
    --primary-press: #D95737;
    --primary-soft:  #FFE3D7;
    --primary-ink:   #821E00;
    --sage:          #80B38A;
    --sage-soft:     #DEF1E1;
    --sage-ink:      #115629;
    --amber:         #F5B75B;
    --amber-soft:    #FFECC9;
    --amber-ink:     #7E4700;
    --navy:          #221811;  /* warm ink — dark sections */
    --gold:          #DCC48E;  /* kept for DAB header label */
    --beige:         #FBF6EE;  /* app bg */
    --mint:          #DEF1E1;  /* sage-soft, used for legal borders */
    --text-dark:     #221811;  /* ink */
    --text-mid:      #534B45;  /* ink2 */
    --text-muted:    #867F79;  /* ink3 */
    --white:         #FEFBF8;  /* app surface */
    --border:        #E7E0D9;  /* line */

    --hero-start:  #2D1A10;  /* warm dark */
    --hero-end:    #3D2218;
    --footer-bg:   #12172A;  /* DAB navy — unchanged */
    --card-radius: 1.25rem;
    --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* 3. Typography Base
   ============================================= */
body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* 4. Layout Utilities
   ============================================= */
.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 56ch;
    margin-inline: auto;
    line-height: 1.65;
}

/* 5. Entrance Animations
   ============================================= */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* 6. Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

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

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

.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-store {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
}

.btn-store:hover {
    background: #3D2218;
    border-color: #3D2218;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-store svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

.btn-store-label small {
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.75;
}

.btn-store-label strong {
    font-size: 1rem;
    font-weight: 700;
}

/* 7. Header
   ============================================= */
.socialize-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.socialize-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.header-brand-logo {
    height: 32px;
    width: auto;
}

.header-brand-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.01em;
}

.header-product {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-back {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    transition: color var(--transition), border-color var(--transition);
    flex-shrink: 0;
}

.header-back:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

/* 8. Hero
   ============================================= */
.socialize-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.socialize-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(240,116,86,0.18) 0%, transparent 65%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sage-soft);
    border: none;
    color: var(--sage-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage-ink);
    box-shadow: 0 0 6px rgba(17,86,41,0.45);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: normal;
    color: var(--primary);
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-phone-mockup {
    width: 260px;
    height: 520px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
}

/* 9. Features Section
   ============================================= */
.socialize-features {
    padding: 6rem 0;
    background: var(--beige);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-eyebrow {
    color: var(--primary);
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* 10. Download Section
   ============================================= */
.socialize-download {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.download-inner {
    max-width: 560px;
    margin-inline: auto;
}

.download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* 11. Legal Notice Strip
   ============================================= */
.legal-strip {
    background: var(--beige);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.legal-strip a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-strip a:hover {
    color: var(--primary-press);
}

/* 12. Footer
   ============================================= */
.socialize-footer {
    background: var(--footer-bg);
    padding: 2.5rem 0;
    color: rgba(255,255,255,0.65);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-brand-logo {
    height: 28px;
    width: auto;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* 13. Legal Page Styles
   ============================================= */
.legal-page-header {
    position: relative;
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    padding: 5rem 0 3rem;
}

.legal-page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    font-weight: 700;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.legal-toc {
    background: var(--beige);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.legal-toc .container {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.legal-toc-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.legal-toc a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    transition: background var(--transition), color var(--transition);
}

.legal-toc a:hover {
    background: rgba(240,116,86,0.1);
    color: var(--primary);
}

.legal-toc-sep {
    color: var(--border);
    font-size: 0.75rem;
}

.legal-body {
    padding: 4rem 0 6rem;
}

.legal-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    max-width: 72ch;
}

/* Anchor offset for sticky TOC */
.legal-section,
.legal-subsection {
    scroll-margin-top: 4rem;
}

.legal-section {
    margin-bottom: 3.5rem;
}

.legal-section-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mint);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-section-title .anchor-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition);
}

.legal-section-title:hover .anchor-link {
    opacity: 1;
}

.legal-subsection {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--mint);
}

.legal-subsection-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.875rem;
}

.legal-body p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 72ch;
}

.legal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-body ul li {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 0.375rem;
}

.legal-effective {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* 14. Hero Screenshot
   ============================================= */
.hero-screenshot-img {
    width: 100%;
    max-width: 280px;
    border-radius: 1.25rem;
    box-shadow: 0 32px 72px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    display: block;
    margin-inline: auto;
}

/* 15. Beacon Section
   ============================================= */
.beacon-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.beacon-card {
    background: var(--beige);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.beacon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.beacon-card-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.beacon-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.beacon-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.beacon-item--on {
    border-color: rgba(240,116,86,0.35);
    background: rgba(240,116,86,0.05);
}

.beacon-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.beacon-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.beacon-tag {
    font-size: 0.75rem;
    background: var(--beige);
    color: var(--text-mid);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
}

.beacon-toggle {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.625rem;
    border-radius: 2rem;
    background: var(--border);
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.beacon-toggle--on {
    background: var(--primary);
    color: var(--white);
}

.beacon-add {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: default;
    font-family: var(--font);
}

/* 16. Features 2-col variant
   ============================================= */
.features-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

/* 17. Use Cases
   ============================================= */
.use-cases-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, #3D2218 100%);
}

.use-cases-section .section-header .section-eyebrow {
    color: var(--amber);
}

.use-cases-section .section-title {
    color: var(--white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: background var(--transition), transform var(--transition);
}

.use-case-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.use-case-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.use-case-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.625rem;
}

.use-case-desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
}

/* 18. Responsive
   ============================================= */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-sub {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-screenshot-img {
        max-width: 100%;
    }

    .features-grid,
    .features-grid--2col {
        grid-template-columns: 1fr;
    }

    .beacon-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .beacon-text h2 {
        text-align: center;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .download-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-product {
        display: none;
    }

    .legal-page-title {
        position: static;
        transform: none;
        font-size: 1.25rem;
    }

    .legal-page-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .legal-toc .container {
        gap: 0.125rem;
    }

    .legal-subsection {
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .socialize-hero {
        padding: 7rem 0 4rem;
    }

    .hero-headline {
        font-size: 2rem;
    }
}
