/**
 * TimelineCard — Master Design System Stylesheet
 * Native Apple HIG Aesthetic • Unified Dark & Light Mode • Fully Responsive
 * Target Market: US Real Estate Agents & Brokerages (Florida Standard F & US Nationwide)
 */

/* ==========================================================================
   1. Design Tokens & Themes
   ========================================================================== */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

    /* Light Theme (Default - Apple HIG Premium Slate & Executive Deep Navy) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-alt-section: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-highlight: rgba(26, 54, 93, 0.35);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Executive Navy Accent */
    --accent: #1a365d;
    --accent-hover: #102a45;
    --accent-soft: rgba(26, 54, 93, 0.08);
    --accent-border: rgba(26, 54, 93, 0.22);
    --accent-glow: rgba(26, 54, 93, 0.18);

    /* Luxury Gold / Champagne Accent (Closing Highlights) */
    --gold: #d97706;
    --gold-hover: #b45309;
    --gold-soft: rgba(217, 119, 6, 0.10);
    --gold-border: rgba(217, 119, 6, 0.28);

    /* Emerald Accent (Completed Milestones) */
    --emerald: #059669;
    --emerald-soft: rgba(5, 150, 105, 0.08);
    --emerald-border: rgba(5, 150, 105, 0.25);

    /* Pill Badges */
    --pill-bg: #eff6ff;
    --pill-text: #1a365d;
    --pill-border: #bfdbfe;
    --pill-dot: #1a365d;

    --nav-bg: rgba(255, 255, 255, 0.90);
    --nav-border: #e2e8f0;

    --btn-primary-bg: #0f172a;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #1e293b;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #0f172a;
    --btn-secondary-border: #cbd5e1;
    --btn-secondary-hover: #f8fafc;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    --shadow-card-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.12);

    /* Aliases */
    --bg: var(--bg-body);
    --card-bg: var(--bg-card);
    --card-border: var(--border-subtle);
    --text-main: var(--text-primary);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #070d18;
    --bg-surface: #0f192d;
    --bg-card: #131f38;
    --bg-card-hover: #172645;
    --bg-subtle: #0d1527;
    --bg-alt-section: #0a1120;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-highlight: rgba(56, 189, 248, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #070d18;

    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-border: rgba(56, 189, 248, 0.3);
    --accent-glow: rgba(56, 189, 248, 0.25);

    --gold: #fbbf24;
    --gold-hover: #f59e0b;
    --gold-soft: rgba(251, 191, 36, 0.14);
    --gold-border: rgba(251, 191, 36, 0.35);

    --emerald: #34d399;
    --emerald-soft: rgba(52, 211, 153, 0.12);
    --emerald-border: rgba(52, 211, 153, 0.3);

    --pill-bg: rgba(56, 189, 248, 0.1);
    --pill-text: #38bdf8;
    --pill-border: rgba(56, 189, 248, 0.28);
    --pill-dot: #38bdf8;

    --nav-bg: rgba(7, 13, 24, 0.88);
    --nav-border: rgba(255, 255, 255, 0.08);

    --btn-primary-bg: #f8fafc;
    --btn-primary-text: #070d18;
    --btn-primary-hover: #ffffff;

    --btn-secondary-bg: rgba(255, 255, 255, 0.06);
    --btn-secondary-text: #f8fafc;
    --btn-secondary-border: rgba(255, 255, 255, 0.14);
    --btn-secondary-hover: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Ambient glow backdrop */
.ambient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ==========================================================================
   3. Navigation Header
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
}

[data-theme="dark"] .logo-badge {
    background: var(--accent);
    color: #070d18;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-desktop a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-desktop a:hover {
    color: var(--accent);
}

.nav-link-b2b {
    position: relative;
}

.badge-b2b {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.nav-link-eco {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    font-size: 0.84rem !important;
    font-weight: 600 !important;
}

.badge-eco {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--accent);
    color: #ffffff;
}

[data-theme="dark"] .badge-eco {
    color: #070d18;
}

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

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.15s ease;
}

.lang-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--border-strong);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Navigation Buttons */
.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 7px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.btn-mobile-menu {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.btn-mobile-menu svg {
    width: 22px;
    height: 22px;
}

.btn-mobile-menu .icon-close {
    display: none;
}

.btn-mobile-menu.active .icon-menu {
    display: none;
}

.btn-mobile-menu.active .icon-close {
    display: block;
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 99;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
    display: flex;
}

.mobile-drawer a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
    z-index: 1;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--pill-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pill-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--pill-dot);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto 1.35rem;
}

.hero h1 span.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero h1 span.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 2.25rem;
    line-height: 1.55;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: all 0.2s ease;
}

.btn-primary-lg:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    transition: all 0.2s ease;
}

.btn-secondary-lg:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. Hero Showcase / Visual Comparison (Card vs PDF)
   ========================================================================== */
.showcase-container {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.showcase-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup-frame {
    width: 320px;
    border-radius: 42px;
    background: #000000;
    padding: 10px;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-mockup-inner {
    border-radius: 34px;
    overflow: hidden;
    background: #0a1120;
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdf-mockup-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.pdf-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pdf-preview-sheet {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 1.25rem;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pdf-title-block {
    border-bottom: 2px solid #1a365d;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pdf-title-block h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1a365d;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
    margin-bottom: 0.85rem;
}

.pdf-table th {
    background: #f1f5f9;
    padding: 6px 8px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid #cbd5e1;
}

.pdf-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.pdf-disclaimer-text {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.4;
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   6. Sections General
   ========================================================================== */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.section-alt {
    background-color: var(--bg-alt-section);
    max-width: 100%;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-alt .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.25rem;
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   7. Feature Cards Grid (4 Pillars)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.85rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

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

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

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

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   8. Interactive Live Standard F Calculator Widget
   ========================================================================== */
.calc-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.calc-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.75rem;
}

.calc-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calc-label-group label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.calc-label-group span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calc-date-input {
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-body);
    color: var(--text-primary);
    outline: none;
    font-weight: 600;
}

.calc-date-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.calc-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.calc-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    transition: all 0.15s ease;
}

.calc-step-row:hover {
    border-color: var(--border-strong);
}

.calc-step-row.is-closing {
    background: var(--gold-soft);
    border-color: var(--gold-border);
}

.calc-step-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.calc-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.calc-step-row.is-closing .calc-step-dot {
    background: var(--gold);
}

.calc-step-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-step-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.calc-step-deadline {
    text-align: right;
}

.calc-date-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-tag-rollover {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(217, 119, 6, 0.15);
    color: var(--gold);
    margin-top: 2px;
}

/* ==========================================================================
   9. Pricing Section ($9/mo & $49/yr)
   ========================================================================== */
.pricing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.trial-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    max-width: 840px;
    margin: 0 auto 3rem;
    padding: 0.95rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px var(--accent-soft);
    text-align: center;
}

.trial-banner-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    flex-shrink: 0;
}

[data-theme="dark"] .trial-banner-badge {
    color: #070d18;
}

.trial-banner-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trial-banner-text strong {
    color: var(--text-primary);
}

.pricing-toggle-btn {
    padding: 0.55rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.pricing-toggle-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pricing-discount-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.25s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 8px 30px var(--accent-soft);
    transform: scale(1.02);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

[data-theme="dark"] .pricing-card-badge {
    color: #070d18;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
}

.pricing-card-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-amount {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-subtext {
    font-size: 0.82rem;
    color: var(--emerald);
    font-weight: 600;
    min-height: 1.25rem;
    margin-bottom: 1.5rem;
}

.pricing-features-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.pricing-features-list li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.45;
}

.pricing-features-list li svg {
    width: 18px;
    height: 18px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta-btn {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all 0.2s ease;
}

.pricing-cta-btn:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
}

.pricing-card.featured .pricing-cta-btn {
    background: var(--accent);
    color: #ffffff;
}

[data-theme="dark"] .pricing-card.featured .pricing-cta-btn {
    color: #070d18;
}

/* Free tier strip */
.free-tier-strip {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.free-tier-strip strong {
    color: var(--text-primary);
}

/* ==========================================================================
   10. Sister Apps & Ecosystem Section (Prominent Cross-Promotion)
   ========================================================================== */
.ecosystem-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.ecosystem-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ecosystem-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.ecosystem-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.ecosystem-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-highlight);
}

.eco-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.eco-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.eco-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eco-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.eco-text h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

.eco-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 700px;
}

.eco-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.eco-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.eco-pill svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.eco-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 190px;
}

.btn-eco {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 9px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: all 0.2s ease;
    text-align: center;
}

.btn-eco:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
}

.btn-eco-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: center;
}

.btn-eco-sub:hover {
    color: var(--accent);
    border-color: var(--border-strong);
}

/* ==========================================================================
   11. FAQ Accordions
   ========================================================================== */
.faq-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    border-color: var(--border-highlight);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.35rem;
}

/* ==========================================================================
   12. CTA Banner
   ========================================================================== */
.cta-banner {
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta-banner p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-banner .btn-primary-lg {
    background: #ffffff;
    color: #0f172a;
}

.cta-banner .btn-primary-lg:hover {
    background: #f1f5f9;
}

.cta-banner .btn-secondary-lg {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-banner .btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
footer {
    background: var(--bg-alt-section);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 1.5rem 2.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    line-height: 1.55;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-disclaimer-box {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 1.15rem 1.5rem;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
    .nav-desktop {
        display: none;
    }
    .btn-mobile-menu {
        display: flex;
    }
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ecosystem-card {
        flex-direction: column;
        align-items: stretch;
    }
    .eco-info {
        flex-direction: column;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .phone-mockup-frame {
        width: 280px;
    }
    .calc-input-row {
        flex-direction: column;
        align-items: stretch;
    }
}
