/* ================================================================
   BESCHOOL DESIGN SYSTEM — Warm Minimal
   ================================================================ */

:root {
    --color-text: #1c1917;
    --color-text-secondary: #78716c;
    --color-text-muted: #a8a29e;
    --color-accent: #ca8a04;
    --color-accent-hover: #b47904;
    --color-bg: #ffffff;
    --color-bg-tinted: #fefce8;
    --color-bg-subtle: #f5f5f4;
    --color-bg-card: #fafaf9;
    --color-border: #e7e5e4;
    --color-border-light: #f0eeec;
    --color-dark: #1c1917;
    --color-dark-surface: #292524;
    --color-success: #16a34a;
    --color-solar: #22c55e;
}

/* ── Base ── */
html, body { overflow-x: hidden; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
}

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

/* ── Navbar ── */
.site-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    z-index: 100;
}

.site-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
    text-decoration: none;
}

.site-logo sup {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
    vertical-align: super;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #57534e;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-links a:hover { background: var(--color-bg-subtle); }
.nav-links a.active { color: var(--color-text); font-weight: 600; }

.lang-switch {
    display: flex;
    gap: 4px;
    margin-right: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 2px;
}

.lang-switch a {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.lang-switch a.active {
    background: var(--color-dark);
    color: white;
}

.btn-nav-login {
    background: var(--color-dark);
    color: white !important;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-nav-login:hover {
    background: var(--color-dark-surface);
    color: white !important;
}

/* Mobile navbar toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-text);
}

/* ── Buttons ── */
.btn-primary-gold {
    background: var(--color-accent);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.btn-primary-gold:hover {
    background: var(--color-accent-hover);
    color: white;
}

.btn-primary-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary-outline {
    border: 1px solid #d6d3d1;
    color: #57534e;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: white;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s;
}

.btn-secondary-outline:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-dark {
    background: var(--color-dark);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ── Section Helpers ── */
.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    padding: 80px 48px 48px;
    max-width: 640px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.15;
    margin-bottom: 16px;
}

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

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 100px 48px 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    z-index: 0;
    mask-image: radial-gradient(ellipse 300px 200px at center, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 300px 200px at center, black, transparent);
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
    background: white;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-solar);
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #ca8a04, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > p {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

/* App Preview */
.app-preview {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-dark);
    border-radius: 16px;
    padding: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.15), 0 0 120px rgba(202,138,4,0.08);
}

.app-preview-inner {
    background: linear-gradient(180deg, var(--color-dark-surface), var(--color-dark));
    border-radius: 14px;
    overflow: hidden;
}

.app-preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #333;
}

.app-preview-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.app-preview-bar span:nth-child(1) { background: #ef4444; }
.app-preview-bar span:nth-child(2) { background: #eab308; }
.app-preview-bar span:nth-child(3) { background: #22c55e; }

.app-preview-bar .bar-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #57534e;
    font-weight: 500;
}

.app-preview-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    min-height: 280px;
}

.app-sidebar {
    border-right: 1px solid #333;
    padding-right: 16px;
}

.app-sidebar-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-sidebar-item.active {
    background: rgba(202,138,4,0.15);
    color: #eab308;
}

.app-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}

.app-photo {
    border-radius: 8px;
    background: linear-gradient(135deg, #44403c, #57534e);
    min-height: 90px;
}

.app-photo:nth-child(1) { background: linear-gradient(135deg, #78716c, #a8a29e); }
.app-photo:nth-child(3) { background: linear-gradient(135deg, #57534e, #78716c); }
.app-photo:nth-child(5) { background: linear-gradient(135deg, #44403c, #78716c); }

/* ── Decorative Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    gap: 16px;
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d6d3d1);
}

.divider-line:last-child {
    background: linear-gradient(90deg, #d6d3d1, transparent);
}

.divider-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: white;
}

/* ── Bento Features Grid ── */
.bento {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px 80px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bento-card {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.bento-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.bento-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.bento-icon { font-size: 28px; margin-bottom: 16px; display: block; }

.bento-card--wide { grid-column: span 4; background: linear-gradient(135deg, #fefce8, #fef9c3); }
.bento-card--half { grid-column: span 2; background: var(--color-bg-card); }
.bento-card--half-2col { grid-column: span 2; background: var(--color-bg-card); }
.bento-card--dark {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark-surface));
    color: white;
}
.bento-card--dark p { color: var(--color-text-muted); }

.bento-gallery {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.bento-gallery-item {
    flex: 1;
    height: 80px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e7e5e4, #d6d3d1);
}

.bento-gallery-item:nth-child(2) { background: linear-gradient(135deg, #d6d3d1, #a8a29e); }
.bento-gallery-item:nth-child(3) { background: linear-gradient(135deg, #ca8a04, #eab308); opacity: 0.4; }

/* ── Workflow Section ── */
.workflow-section {
    background: var(--color-bg-tinted);
    padding: 80px 48px;
    position: relative;
}

.workflow-section::before {
    content: '';
    position: absolute;
    top: -48px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--color-bg-tinted);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.workflow-section::after {
    content: '';
    position: absolute;
    bottom: -48px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--color-bg-tinted);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.workflow {
    max-width: 900px;
    margin: 48px auto 0;
}

.workflow-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding-bottom: 40px;
    position: relative;
}

.workflow-step:last-child { padding-bottom: 0; }

.workflow-step::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-border));
}

.workflow-step:last-child::before { display: none; }

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: white;
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(202,138,4,0.12);
}

.step-content { padding-top: 8px; }

.step-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* ── Stats Ribbon ── */
.stats-ribbon {
    background: var(--color-dark);
    padding: 48px;
    margin-top: 48px;
}

.stats-ribbon-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
}

.stat-item span { font-size: 13px; color: var(--color-text-secondary); }

.stat-separator {
    width: 1px;
    background: linear-gradient(180deg, transparent, #44403c, transparent);
}

/* ── CTA ── */
.cta-section {
    padding: 100px 48px;
    text-align: center;
}

.cta-frame {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 64px 48px;
    position: relative;
    background: white;
}

.cta-frame::before,
.cta-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
}

.cta-frame::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 24px 0 0 0;
}

.cta-frame::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 24px 0;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ── */
.site-footer {
    background: var(--color-dark);
    color: var(--color-text-muted);
    padding: 48px 48px 32px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-dark-surface);
}

.footer-brand .site-logo { color: white; }
.footer-brand p { font-size: 13px; line-height: 1.6; }

.site-footer h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }

.site-footer ul li { margin-bottom: 10px; font-size: 13px; }

.site-footer ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer ul li a:hover { color: #d6d3d1; }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.solar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-dark-surface);
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 16px;
    font-size: 12px;
}

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

/* ── Pricing Page ── */
.pricing-header {
    text-align: center;
    padding: 80px 48px 16px;
    position: relative;
}

.pricing-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 450px;
    background: linear-gradient(180deg, var(--color-bg-tinted) 0%, var(--color-bg) 100%);
    z-index: 0;
}

.pricing-header > * { position: relative; z-index: 1; }

.pricing-header h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.pricing-header p {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px 48px;
    position: relative;
    z-index: 1;
}

.billing-toggle-inner {
    display: inline-flex;
    background: var(--color-bg-subtle);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--color-border);
}

.billing-option {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 10px 24px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    border: none;
    background: none;
    font-family: inherit;
}

.billing-option.active {
    background: white;
    color: var(--color-text);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.save-badge {
    font-size: 11px;
    background: var(--color-bg-tinted);
    color: var(--color-accent);
    border: 1px solid #fde68a;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 700;
}

.pricing-grid {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 48px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pricing-card.featured {
    border: 2px solid var(--color-accent);
    background: linear-gradient(180deg, #fffef5 0%, var(--color-bg) 30%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-accent);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.pricing-card .plan-subtitle { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }

.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.price-currency { font-size: 20px; font-weight: 700; color: var(--color-text-secondary); }
.price-period { font-size: 13px; color: var(--color-text-muted); margin-bottom: 28px; }

.pricing-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 24px 0;
}

.features-list { list-style: none; padding: 0; margin: 0 0 28px; }

.features-list li {
    font-size: 14px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #57534e;
}

.features-list li .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0fdf4;
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.features-list li .dash {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.features-list li .value { font-weight: 700; color: var(--color-text); }

.commission-highlight {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--color-bg-subtle);
}

.commission-highlight .value { font-weight: 700; color: var(--color-accent); }

/* Comparison Table */
.comparison-table {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 48px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-bg-subtle);
    font-size: 14px;
}

.comparison-row.header {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border-light);
    padding-bottom: 16px;
}

.comparison-row div { text-align: center; }
.comparison-row div:first-child { text-align: left; color: #57534e; }
.comparison-row .check-icon { color: var(--color-success); font-weight: 700; }
.comparison-row .dash-icon { color: #d6d3d1; }

/* ── Contact Page ── */
.contact-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-info > p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-bg-tinted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-detail-text { font-size: 14px; }
.contact-detail-text strong { display: block; color: var(--color-text); font-weight: 600; margin-bottom: 2px; }
.contact-detail-text span { color: var(--color-text-secondary); }

.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 20px;
    padding: 36px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus { border-color: var(--color-accent); }
.form-input::placeholder { color: #c8c5c1; }

textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Login Page ── */
.login-layout {
    display: flex;
    min-height: calc(100vh - 57px);
}

.login-sidebar {
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark-surface));
    flex: 1;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.login-sidebar .site-logo { color: white; font-size: 20px; margin-bottom: 32px; }

.login-sidebar h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: white;
}

.login-sidebar p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

.login-testimonial {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #44403c;
}

.login-testimonial blockquote {
    font-size: 14px;
    color: #d6d3d1;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
}

.login-testimonial cite { font-size: 13px; color: var(--color-text-secondary); font-style: normal; }

.login-form-side {
    flex: 1;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
}

.login-form-side h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-form-side .subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.form-row a {
    font-size: 12px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.login-divider {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 24px 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    background: var(--color-border);
    width: 40%;
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

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

/* ── Signup Modal ── */
.signup-modal-header {
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark-surface));
    padding: 32px 32px 28px;
    text-align: center;
    color: white;
}

.signup-modal-header .site-logo { color: white; font-size: 18px; margin-bottom: 12px; }

.signup-modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: white;
}

.signup-modal-header p { font-size: 13px; color: var(--color-text-muted); }

.signup-modal-body { padding: 28px 32px 32px; }

.input-group-custom {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.input-group-custom .prefix,
.input-group-custom .suffix {
    padding: 12px;
    background: var(--color-bg-card);
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.input-group-custom .prefix { border-right: 1px solid var(--color-border); }
.input-group-custom .suffix { border-left: 1px solid var(--color-border); }

.input-group-custom input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    text-align: center;
    min-width: 0;
}

.input-hint { font-size: 11px; color: var(--color-text-muted); margin-top: 6px; }

.recaptcha-placeholder {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .site-navbar { padding: 12px 24px; }
    .navbar-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
        gap: 4px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; }

    .hero { padding: 60px 24px 40px; }
    .hero h1 { font-size: 40px; letter-spacing: -2px; }
    .hero > p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .app-preview-content { grid-template-columns: 1fr; }
    .app-sidebar { border-right: none; border-bottom: 1px solid #333; padding-right: 0; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; }

    .bento { grid-template-columns: 1fr; padding: 0 24px 60px; }
    .bento-card--wide,
    .bento-card--half,
    .bento-card--half-2col,
    .bento-card--dark { grid-column: span 1; }

    .section-header { padding: 60px 24px 32px; }
    .section-header h2 { font-size: 30px; }
    .section-divider { padding: 40px 24px; }

    .workflow-section { padding: 60px 24px; }

    .stats-ribbon-inner { flex-direction: column; gap: 24px; }
    .stat-separator { width: 100%; height: 1px; }

    .cta-section { padding: 60px 24px; }
    .cta-frame { padding: 40px 24px; }

    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }

    .pricing-header { padding: 60px 24px 16px; }
    .pricing-header h1 { font-size: 36px; }
    .pricing-grid { grid-template-columns: 1fr; padding: 0 24px 60px; }
    .comparison-row { grid-template-columns: 2fr 1fr 1fr 1fr; font-size: 12px; }
    .comparison-table { padding: 0 24px; }

    .contact-layout { grid-template-columns: 1fr; padding: 40px 24px 60px; }

    .login-layout { flex-direction: column; }
    .login-sidebar { padding: 40px 24px; }
    .login-form-side { padding: 40px 24px; max-width: 100%; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 32px; letter-spacing: -1.5px; }
    .section-header h2 { font-size: 26px; letter-spacing: -1px; }
    .pricing-header h1 { font-size: 28px; }
    .stats-ribbon { padding: 32px 24px; }
    .stat-item strong { font-size: 28px; }
}

/* ── Bootstrap overrides for forms ── */
.form-control {
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(202,138,4,0.08);
}

/* Modal styling */
#mainModal .modal-dialog {
    width: 440px !important;
    max-width: 90% !important;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header { border-bottom: none; padding: 0; }
.modal-body { padding: 0; }
