/* ============================================
   Retirement Income Funnel — retirement.umaryusof.com
   Matches umaryusof.com design system
   ============================================ */

:root {
    --color-bg: #FAFAF8;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #5A5A5A;
    --color-text-muted: #8A8A8A;
    --color-accent: #1B4D3E;
    --color-accent-light: #E8F0ED;
    --color-accent-hover: #153D31;
    --color-border: #E8E8E4;
    --color-border-light: #F0F0EC;
    --color-warm: #F5F0E8;
    --color-gold: #C5943A;
    --color-gold-light: #FBF6ED;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 720px;
    --section-padding: 80px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

/* Top bar */
.topbar {
    text-align: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border-light);
}
.topbar a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Hero — opt-in page */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-warm) 100%);
}
.hero-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.hero h1 {
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

/* Form */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 0 auto;
}
.form-card h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.05rem;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color var(--transition);
    background: var(--color-bg);
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
}
.form-group input::placeholder {
    color: var(--color-text-muted);
}
.form-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    width: 100%;
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-gold {
    background: var(--color-gold);
    color: #fff;
    width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
}
.btn-gold:hover {
    background: #B08533;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent-light);
}

/* What you'll learn section */
.learn-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}
.learn-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.learn-list {
    max-width: 560px;
    margin: 0 auto;
}
.learn-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.learn-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
}
.learn-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: var(--font-body);
}
.learn-text p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* About author */
.author-section {
    padding: 60px 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
}
.author-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 560px;
    margin: 0 auto;
}
.author-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}
.author-card h3 {
    margin-bottom: 8px;
}
.author-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Sales page sections */
.sales-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-warm) 100%);
}
.sales-hero .price-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 24px 0 8px;
}
.sales-hero .price-note {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.toc-section {
    padding: var(--section-padding) 0;
    background: var(--color-surface);
}
.toc-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}
.toc-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
}
.toc-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}
.toc-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Testimonial / proof strip */
.proof-strip {
    padding: 48px 0;
    background: var(--color-accent);
    color: #fff;
    text-align: center;
}
.proof-strip .stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.proof-strip .stat-item {
    text-align: center;
}
.proof-strip .stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}
.proof-strip .stat-label {
    font-size: 0.82rem;
    opacity: 0.75;
    margin-top: 4px;
}

/* CTA section */
.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
}
.cta-section h2 {
    margin-bottom: 16px;
}
.cta-section > .container > p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 1.02rem;
}
.cta-box {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.cta-box .price-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.cta-box .price-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.guarantee {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* Thank you / delivery page */
.thankyou-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(170deg, var(--color-bg) 0%, var(--color-warm) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.thankyou-hero .check-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.thankyou-hero h1 {
    margin-bottom: 16px;
}
.thankyou-hero p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.8;
}
.next-steps {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    padding: 24px 28px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}
.next-steps h3 {
    margin-bottom: 16px;
    text-align: center;
}
.next-steps li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
}
.next-steps li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.88rem;
}

/* Disclaimer */
.disclaimer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border-light);
}
.disclaimer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}
.footer a {
    color: var(--color-accent);
}

/* Error message */
.form-error {
    color: #c0392b;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 8px;
    display: none;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .hero, .sales-hero { padding: 60px 0 40px; }
    .form-card { padding: 28px 20px; }
    .toc-grid { grid-template-columns: 1fr; }
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .proof-strip .stats { gap: 32px; }
}
