/* Borrd Website Styles */
/* Sister site to plannr-app.com. Same layout and components, Borrd greens. */
/* Follows the visitor's system theme on first visit; toggle choice is remembered */
/* Following DesignSpark design language */

/* ========================================
   CSS Variables - Theme System
   ======================================== */

:root {
    /* Brand Colors (sampled from the Borrd logo) */
    --lime: #84CC16;
    --green: #22A63B;
    --emerald: #10B981;
    --deep-green: #065F46;

    /* Plannr brand, used only where Borrd points to Plannr */
    --plannr-indigo: #6366F1;
    --plannr-purple: #8B5CF6;

    /* Gradients. Text on the bright gradient is dark (--on-primary) for contrast. */
    --gradient-primary: linear-gradient(135deg, var(--lime) 0%, var(--emerald) 100%);
    --gradient-primary-hover: linear-gradient(135deg, #65A30D 0%, #059669 100%);
    --on-primary: #052E16;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 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);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #0B1210;
    --bg-secondary: #111C18;
    --bg-tertiary: #1A2A24;
    --bg-card: rgba(26, 42, 36, 0.55);
    --bg-card-hover: rgba(26, 42, 36, 0.85);

    --text-primary: #FFFFFF;
    --text-secondary: #A3B8AD;
    --text-tertiary: #6E8479;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);

    --nav-bg: rgba(11, 18, 16, 0.9);
    --hero-bg: linear-gradient(180deg, #0B1210 0%, #111C18 50%, #0B1210 100%);

    --input-bg: #111C18;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-text: #FFFFFF;
    --input-placeholder: #6E8479;

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

    /* Accent: links, labels, borders */
    --accent: #A3E635;
    --accent-strong: #22C55E;
    --gradient-text: linear-gradient(135deg, #A3E635 0%, #34D399 100%);

    /* Plan badges and comparison table */
    --power-color: #B48EF0;
    --power-text: #FFFFFF;
    --pro-color: #F0A65C;
    --pro-text: #1A1A2E;
    --pro-tint: rgba(240, 166, 92, 0.07);
    --yes-color: #4ADE80;
    --no-color: #55675E;
    --bg-card-solid: #142019;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F6FAF3;
    --bg-tertiary: #ECF7E3;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F6FAF3;

    --text-primary: #132019;
    --text-secondary: #46584E;
    --text-tertiary: #6B7D73;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);

    --nav-bg: rgba(255, 255, 255, 0.95);
    --hero-bg: linear-gradient(180deg, #EEF9E4 0%, #FFFFFF 50%, #F6FAF3 100%);

    --input-bg: #FFFFFF;
    --input-border: rgba(0, 0, 0, 0.1);
    --input-text: #132019;
    --input-placeholder: #6B7D73;

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Accent: links, labels, borders (darker greens keep text readable on white) */
    --accent: #15803D;
    --accent-strong: #16A34A;
    --gradient-text: linear-gradient(135deg, #4D7C0F 0%, #047857 100%);

    /* Plan badges and comparison table */
    --power-color: #8A4FD6;
    --power-text: #FFFFFF;
    --pro-color: #D9822B;
    --pro-text: #1A1A2E;
    --pro-tint: rgba(217, 130, 43, 0.07);
    --yes-color: #16A34A;
    --no-color: #B4BEB8;
    --bg-card-solid: #FFFFFF;
}

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

*, *::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.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-strong);
}

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

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

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

.nav-cta {
    background: var(--gradient-primary);
    color: var(--on-primary) !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    color: var(--on-primary) !important;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.theme-icon-dark,
.theme-icon-light {
    font-size: 1.1rem;
    transition: opacity var(--transition-base);
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

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

.hero {
    padding: 160px 0 100px;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-strong);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
}

.hero-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--input-text);
    transition: border-color var(--transition-base);
}

.hero-form input::placeholder {
    color: var(--input-placeholder);
}

.hero-form input:focus {
    outline: none;
    border-color: var(--accent-strong);
}

.hero-form button {
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--on-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 16px;
}

/* Demo access row */
.demo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    max-width: 480px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color-hover);
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid var(--accent-strong);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.btn-demo svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.btn-demo:hover {
    background: var(--accent-strong);
    color: var(--on-primary);
}

.btn-demo:hover svg {
    color: var(--on-primary);
}

.link-plans {
    font-weight: 600;
    color: var(--accent);
}

.demo-note {
    flex-basis: 100%;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.demo-note a {
    color: var(--text-secondary);
    font-weight: 600;
}

.demo-note a:hover {
    color: var(--accent);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* ========================================
   Screenshots Section (light/dark compare slider + close-ups)
   ======================================== */

.shots-section {
    background: var(--bg-primary);
}

/* View tabs */
.view-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.view-tab {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.view-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-strong);
}

.view-tab[aria-selected="true"] {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--on-primary);
}

/* Compare slider. JS sets --split to match the range thumb position. */
.view-compare-figure {
    margin: 0 0 64px;
}

.view-compare {
    --split: 50%;
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1800 / 1086;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    user-select: none;
    -webkit-user-select: none;
}

.view-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.vc-dark {
    clip-path: inset(0 0 0 var(--split));
}

.vc-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 2px;
    margin-left: -1px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(11, 18, 16, 0.25);
    pointer-events: none;
}

.vc-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #FFFFFF;
    color: #132019;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.view-compare:focus-within .vc-knob {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.vc-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* Invisible range input on top: handles mouse, touch, and arrow keys.
   Its 44px thumb sits exactly over the visible knob. */
.vc-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    touch-action: pan-y;
}

.vc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 44px;
    height: 44px;
    cursor: ew-resize;
}

.vc-range::-moz-range-thumb {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: ew-resize;
}

.view-caption {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Feature close-ups */
.feature-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.shot {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.shot-frame {
    aspect-ratio: 4 / 5;
    max-width: 100%;
    padding: 20px;
    display: grid;
    place-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.shot figcaption {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.shot figcaption strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .view-tab {
        transition: none;
    }
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ========================================
   Problem Section
   ======================================== */

.problem-section {
    background: var(--bg-secondary);
}

.problem-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.problem-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 24px;
}

.problem-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: left;
}

.problem-card.solution {
    background: var(--gradient-primary);
    border-color: transparent;
}

.problem-card.solution h3,
.problem-card.solution p {
    color: var(--on-primary);
}

.problem-card.solution .problem-icon {
    background: rgba(255, 255, 255, 0.35);
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.features-section {
    background: var(--bg-primary);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Workspaces Section
   ======================================== */

.workspaces-section {
    background: var(--bg-secondary);
}

.workspaces-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.workspace-tag {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.workspace-tag:hover {
    border-color: var(--accent-strong);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ========================================
   Plans Section (Free / Power / Pro / Enterprise)
   ======================================== */

.plans-section {
    background: var(--bg-primary);
}

/* Offset anchor jumps (#plans from the demo) so the fixed navbar does not cover the heading */
section[id] {
    scroll-margin-top: 90px;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -24px 0 40px;
}

.billing-switch {
    display: inline-flex;
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.billing-switch button {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-base);
}

.billing-switch button[aria-pressed="true"] {
    background: var(--gradient-primary);
    color: var(--on-primary);
}

.billing-save {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yes-color);
}

/* Tier cards */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 40px;
}

.tier-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    position: relative;
    transition: border-color var(--transition-slow), transform var(--transition-slow);
}

.tier-card:hover {
    border-color: var(--accent-strong);
    transform: translateY(-4px);
}

.tier-card.featured {
    border-color: var(--pro-color);
    box-shadow: var(--card-shadow);
}

.tier-card.featured:hover {
    border-color: var(--pro-color);
}

.tier-ribbon {
    position: absolute;
    top: -12px;
    left: 28px;
    padding: 4px 12px;
    background: var(--pro-color);
    color: var(--pro-text);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tier-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.tier-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.tier-badge-power {
    background: var(--power-color);
    color: var(--power-text);
}

.tier-badge-pro {
    background: var(--pro-color);
    color: var(--pro-text);
}

.tier-price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.tier-price .price-unit {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.tier-billing {
    min-height: 1.4em;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.tier-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 16px 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tier-features {
    list-style: none;
    display: grid;
    gap: 12px;
    align-content: start;
    flex: 1;
    margin-bottom: 28px;
}

.tier-features li {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tier-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 600;
}

/* Comparison table */
.compare {
    margin-top: 72px;
}

.compare h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 8px;
}

.compare-intro {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.compare-hint {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.compare-table td {
    color: var(--text-primary);
}

.compare-table thead th {
    background: var(--bg-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    vertical-align: bottom;
}

.compare-table .col-price {
    display: block;
    margin-top: 4px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* Feature column stays pinned while the table scrolls sideways on phones */
.compare-table thead th:first-child,
.compare-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card-solid);
}

.compare-table thead th:first-child {
    background: var(--bg-secondary);
    z-index: 2;
}

.compare-group th {
    text-align: left;
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
}

.compare-table .col-pro {
    background: var(--pro-tint);
}

.compare-table .cell-small {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.compare-table .cell-yes {
    color: var(--yes-color);
    font-weight: 700;
}

.compare-table .cell-no {
    color: var(--no-color);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pricing Addon */
.pricing-addon {
    max-width: 700px;
    margin: 0 auto;
}

.addon-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.addon-icon {
    font-size: 2rem;
}

.addon-text {
    flex: 1;
}

.addon-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.addon-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.addon-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.addon-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
    color: var(--on-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent-strong);
}

.btn-outline:hover {
    background: var(--accent-strong);
    color: var(--on-primary);
}

/* ========================================
   Integration Section
   ======================================== */

.integration-section {
    background: var(--bg-secondary);
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.integration-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.integration-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.integration-logos {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.integration-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.integration-icon {
    font-size: 1.25rem;
}

/* Plannr Preview (integration section) */
.partner-preview {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
}

.partner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.partner-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--plannr-indigo), var(--plannr-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.partner-header span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.partner-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.partner-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Waitlist Section
   ======================================== */

.waitlist-section {
    background: var(--gradient-primary);
    text-align: center;
}

.waitlist-content {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-section .section-label {
    color: rgba(5, 46, 22, 0.75);
}

.waitlist-section h2 {
    color: var(--on-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.waitlist-section > .container > .waitlist-content > p {
    color: rgba(5, 46, 22, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(5, 46, 22, 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--on-primary);
    transition: border-color var(--transition-base);
}

.waitlist-form input::placeholder {
    color: rgba(5, 46, 22, 0.6);
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--on-primary);
}

.waitlist-form .btn-primary {
    background: var(--on-primary);
    color: #ECFCCB;
}

.waitlist-form .btn-primary:hover {
    background: #0A3D20;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.waitlist-note {
    font-size: 0.875rem;
    color: rgba(5, 46, 22, 0.7);
    margin-top: 16px;
}

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

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer {
    background: #070C0A;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer-bottom a {
    color: var(--text-secondary);
}

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

.footer-trademark {
    font-size: 0.8rem;
}

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-form {
        margin: 0 auto;
    }

    .demo-row {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 40px auto 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .integration-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .integration-logos {
        justify-content: center;
    }
    
    .integration-text .btn {
        display: inline-flex;
        width: auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-form {
        flex-direction: column;
    }
    
    .hero-form button {
        width: 100%;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-shots {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .view-compare-figure {
        margin-bottom: 48px;
    }
    
    .view-tabs {
        gap: 6px;
    }
    
    .view-tab {
        padding: 7px 13px;
        font-size: 0.85rem;
    }
    
    .tier-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .compare-hint {
        display: block;
    }
    
    .demo-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-demo {
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .waitlist-form {
        flex-direction: column;
    }
    
    .integration-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .addon-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .view-tabs {
        gap: 4px;
    }
    
    .view-tab {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* ========================================
   Borrd additions
   ======================================== */

/* "Already on Plannr?" callout reuses the add-on box */
.addon-icon .partner-logo {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}

.addon-link {
    font-weight: 600;
    white-space: nowrap;
    color: var(--accent);
}

.addon-link:hover {
    color: var(--accent-strong);
}

/* ========================================
   Legal pages (privacy.html, terms.html, license.html)
   ======================================== */

.legal-page {
    padding: 140px 0 80px;
    background: var(--bg-primary);
}

.legal-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.legal-meta {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.legal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legal-tab {
    padding: 7px 16px;
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.legal-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-strong);
}

.legal-tab[aria-current="page"] {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--on-primary);
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal h2 {
    font-size: 1.45rem;
    margin: 48px 0 14px;
    scroll-margin-top: 90px;
}

.legal h3 {
    font-size: 1.15rem;
    margin: 32px 0 10px;
    scroll-margin-top: 90px;
}

.legal h4 {
    font-size: 1rem;
    margin: 24px 0 6px;
    color: var(--text-primary);
}

.legal p {
    margin-bottom: 16px;
}

.legal ul,
.legal ol {
    margin: 0 0 18px 24px;
}

.legal li {
    margin-bottom: 8px;
}

.legal li > ul,
.legal li > ol {
    margin-top: 8px;
}

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

.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal th,
.legal td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    min-width: 120px;
}

.legal thead th,
.legal tr:first-child th {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.legal-toc {
    padding: 24px 28px;
    margin-bottom: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.legal-toc h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.legal-toc ol {
    list-style: none;
    margin: 0;
    columns: 2;
    column-gap: 32px;
    font-size: 0.9rem;
}

.legal-toc li {
    break-inside: avoid;
    margin-bottom: 6px;
}

.legal-toc a {
    text-decoration: none;
    color: var(--text-secondary);
}

.legal-toc a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 110px 0 60px;
    }

    .legal-toc ol {
        columns: 1;
    }
}
