/* ==========================================================================
   Risk Free Retirement Co. — Shared Design System
   Extracted from inline styles. Shared across all funnel pages.
   ========================================================================== */

:root {
    --navy: #1a2744;
    --navy-deep: #0f1829;
    --cream: #faf8f5;
    --cream-dark: #f0ebe3;
    --gold: #a07d55;
    --gold-light: #d4b896;
    --gold-dark: #86693f;
    --slate: #2d3748;
    --slate-light: #4a5568;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(26, 39, 68, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 39, 68, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: var(--slate);
    background: var(--cream);
    font-size: 19px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--slate-light);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 800px;
}

section {
    padding: 56px 0;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    padding: 32px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 149, 109, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 12px;
    animation: fadeUp 0.8s ease-out;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
}

.hero h1 span {
    color: var(--gold-light);
}

.hero__subhead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.6;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

/* Video Container */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 10px;
    z-index: -1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Cover Overlay */
.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a3f5f 0%, #1a2744 50%, #0f1829 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(184, 149, 109, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.video-cover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-cover__play {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(184, 149, 109, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.video-cover:hover .video-cover__play {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(184, 149, 109, 0.6);
}

.video-cover__play svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
    margin-left: 4px;
}

.video-cover__text {
    margin-top: 16px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
}

.video-cover__duration {
    margin-top: 6px;
    color: var(--gold-light);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(184, 149, 109, 0.5);
    }
    50% {
        box-shadow: 0 8px 48px rgba(184, 149, 109, 0.7);
    }
}

.video-resume-notice {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-resume-notice.visible {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 52px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(160, 125, 85, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(160, 125, 85, 0.5);
}

.btn--secondary {
    background: var(--cream);
    color: var(--slate);
    border: 2px solid var(--cream-dark);
    font-weight: 600;
}

.btn--secondary:hover {
    background: var(--cream-dark);
    color: var(--navy);
    border-color: var(--gold);
}

.hero .btn {
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

.hero__trust {
    margin-top: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    animation: fadeUp 0.8s ease-out 0.4s backwards;
}

/* Section: This Is For You */
.for-you {
    background: var(--white);
    position: relative;
}

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

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

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bullet-list {
    list-style: none;
    max-width: 720px;
    margin: 0 auto 32px;
}

.bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.section-cta {
    text-align: center;
}

/* Section: Video Reveals */
.reveals {
    background: var(--cream);
}

.reveals-grid {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.reveal-card {
    background: var(--white);
    padding: 20px 24px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--gold);
    transition: all var(--transition);
}

.reveal-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(3px);
}

.reveal-card p {
    font-size: 1.05rem;
    color: var(--slate);
    margin: 0;
    line-height: 1.6;
}

/* Section: Meet Marco */
.meet-marco {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.meet-marco::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at 100% 50%, rgba(184, 149, 109, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.marco-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .marco-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.marco-image {
    position: relative;
}

.marco-image__photo {
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gold);
}

.marco-text h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.marco-text h2 span {
    color: var(--gold-light);
}

.marco-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.marco-text p:last-of-type {
    margin-bottom: 24px;
}

.marco-text .highlight {
    color: var(--gold-light);
    font-weight: 500;
}

/* Section: What Happens */
.what-happens {
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 1.25rem;
}

.step p {
    font-size: 1rem;
    line-height: 1.65;
}

.step ul {
    text-align: left;
    margin-top: 12px;
    padding-left: 18px;
}

.step ul li {
    margin-bottom: 8px;
    color: var(--slate-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Calendar Section */
.calendar-section {
    background: var(--cream);
    padding: 56px 0;
}

.calendar-intro {
    text-align: center;
    margin-bottom: 32px;
}

.calendar-intro h2 {
    margin-bottom: 12px;
}

.calendar-intro p {
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.calendar-embed {
    max-width: 800px;
    margin: 0 auto;
}

.form-embed-container {
    width: 100%;
    min-height: 600px;
}

.form-embed-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: var(--navy-deep);
    padding: 40px 0 32px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer__logo {
    margin-bottom: 16px;
}

.footer__logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.footer__logo-text span {
    color: var(--gold-light);
}

.footer__tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-style: italic;
}

.footer__links {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold-light);
}

.footer__disclaimer {
    font-size: 0.8rem;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer__copyright {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Site Header */
.site-header {
    background: var(--navy-deep);
    padding: 12px 0;
}

.site-header__logo {
    display: inline-block;
}

.site-header__logo-img {
    height: 40px;
    width: auto;
}

/* Footer Logo Image */
.footer__logo-img {
    height: 48px;
    width: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Legal Pages (Privacy, Terms, Disclaimer) */
.legal-page {
    flex: 1;
    padding: 40px 0 60px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    padding: 48px 40px;
}

.legal-card h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 4px;
}

.legal-card .legal-updated {
    font-size: 0.85rem;
    color: var(--slate-light);
    margin-bottom: 32px;
}

.legal-card h2 {
    font-size: 1.25rem;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-card ul {
    margin: 8px 0 16px 20px;
}

.legal-card ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
    color: var(--slate-light);
}

.legal-card address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--slate-light);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 28px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .btn {
        padding: 18px 28px;
        font-size: 1.05rem;
        width: 100%;
    }

    .calendar-embed {
        padding: 32px 24px;
    }

    .footer__links {
        flex-direction: column;
        gap: 16px;
    }
}
