/* ============================================================
   REDESIGN — Editorial / Premium (Business Override)
   ============================================================ */

:root {
    --rd-bg: #0f172a;
    --rd-bg-elev: #1e293b;
    --rd-surface: #1e293b;
    --rd-fg: #ECEAE4;
    --rd-fg-muted: #8E9099;
    --rd-fg-dim: #5B5E68;
    --rd-line: rgba(255, 255, 255, 0.08);
    --rd-line-strong: rgba(255, 255, 255, 0.16);
    --rd-accent: #10b981;
    --rd-accent-ink: #0f172a;
    --rd-accent-soft: rgba(16, 185, 129, 0.10);
    --rd-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html[data-rd-theme="light"] {
    --rd-bg: #FAFAF7;
    --rd-bg-elev: #FFFFFF;
    --rd-surface: #FFFFFF;
    --rd-fg: #14201B;
    --rd-fg-muted: #4F5A55;
    --rd-fg-dim: #8E9099;
    --rd-line: rgba(0, 0, 0, 0.08);
    --rd-line-strong: rgba(0, 0, 0, 0.16);
    --rd-accent: #047857;
    --rd-accent-ink: #FFFFFF;
    --rd-accent-soft: rgba(4, 120, 87, 0.08);
    --rd-shadow: 0 24px 60px rgba(16, 16, 16, 0.08);
}

/* Reset / Base */
html.rd-html,
html.rd-html body {
    background: var(--rd-bg) !important;
    color: var(--rd-fg) !important;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    font-display: swap;
}

.rd-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .rd-wrap { padding: 0 48px; }
}

/* Nav */
.rd-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: color-mix(in srgb, var(--rd-bg) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rd-line);
}

.rd-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rd-fg);
    transition: opacity .2s ease;
}

.rd-logo:hover { opacity: 0.8; }

.rd-logo svg {
    width: 28px;
    height: 28px;
    color: var(--rd-accent);
}

.rd-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rd-logo-dot { color: var(--rd-accent); }

.rd-logo-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.rd-nav-links { display: none; gap: 32px; }

@media (min-width: 768px) {
    .rd-nav-links { display: inline-flex; }
}

.rd-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--rd-fg-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.rd-nav-link:hover { color: var(--rd-fg); }

.rd-nav-cta {
    background: var(--rd-fg);
    color: var(--rd-bg);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}

.rd-nav-cta:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* Hero */
.rd-hero { padding: 64px 0 72px; text-align: center; }

.rd-hero-title {
    font-size: clamp(32px, 7vw, 64px);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 0 0 24px;
    color: var(--rd-fg);
}

.rd-hero-title em {
    display: block;
    font-style: normal;
    color: var(--rd-accent);
}

.rd-hero-lede {
    font-size: clamp(17px, 2.5vw, 20px);
    line-height: 1.45;
    color: var(--rd-fg-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.rd-hero-lede strong { color: var(--rd-fg); font-weight: 600; }

/* Grid */
.rd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--rd-line);
    border: 1px solid var(--rd-line);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
}

@media (min-width: 720px) {
    .rd-grid { grid-template-columns: repeat(2, 1fr); }
}

.rd-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--rd-bg);
    padding: 40px 32px;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}

.rd-tile:hover { background: var(--rd-bg-elev); }

.rd-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--rd-accent-soft);
    color: var(--rd-accent);
    margin-bottom: 24px;
}

.rd-tile-icon svg { width: 20px; height: 20px; }

.rd-tile-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.rd-tile-body {
    color: var(--rd-fg-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Section */
.rd-section { padding: 80px 0; border-bottom: 1px solid var(--rd-line); }

.rd-section-head { margin-bottom: 48px; text-align: center; }

.rd-section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.rd-section-lede {
    font-size: 17px;
    color: var(--rd-fg-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* Pricing */
.rd-pricing-box {
    background: var(--rd-bg-elev);
    border: 1px solid var(--rd-line-strong);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.rd-price-main {
    font-size: 48px;
    font-weight: 850;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.rd-price-period {
    font-size: 16px;
    color: var(--rd-fg-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.rd-price-sub {
    font-size: 14px;
    color: var(--rd-fg-dim);
    margin-bottom: 32px;
}

/* Form */
.rd-form-card {
    background: var(--rd-bg-elev);
    border: 1px solid var(--rd-line-strong);
    border-radius: 24px;
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
}

.rd-form-group { margin-bottom: 20px; }

.rd-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-fg-muted);
    margin-bottom: 8px;
}

.rd-input, .rd-select, .rd-textarea {
    width: 100%;
    background: var(--rd-bg);
    border: 1px solid var(--rd-line-strong);
    border-radius: 12px;
    padding: 12px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--rd-fg);
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rd-input:focus, .rd-select:focus, .rd-textarea:focus {
    border-color: var(--rd-accent);
    box-shadow: 0 0 0 4px var(--rd-accent-soft);
}

.rd-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.rd-checkbox-group input { display: none; }

.rd-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--rd-line-strong);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.rd-checkbox-group input:checked + .rd-checkbox-custom {
    background: var(--rd-accent);
    border-color: var(--rd-accent);
}

.rd-checkbox-group input:checked + .rd-checkbox-custom::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px);
}

.rd-checkbox-label { font-size: 14px; color: var(--rd-fg-muted); }

.rd-btn-submit {
    width: 100%;
    background: var(--rd-accent);
    color: var(--rd-accent-ink);
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
    box-shadow: 0 10px 20px var(--rd-accent-soft);
}

.rd-btn-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.rd-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* CTA Buttons Expansion */
.rd-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

@media (min-width: 768px) {
    .rd-cta-group {
        flex-direction: row;
    }
}

.rd-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none !important;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-width: 280px;
    max-width: 440px;
    line-height: 1.2;
}

.rd-cta-btn-green {
    background: #10b981;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.rd-cta-btn-green:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.rd-cta-btn-white {
    background: #FFFFFF;
    color: #0f172a !important;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.rd-cta-btn-white:hover {
    transform: translateY(-3px);
    background: #f8fafc;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

.rd-cta-subtext {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 6px;
    letter-spacing: 0.01em;
}

/* Feature Toggle UI */
.rd-feature-toggle-wrap {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.rd-feature-toggle {
    display: inline-flex;
    background: var(--rd-bg-elev);
    border: 1px solid var(--rd-line-strong);
    padding: 4px;
    border-radius: 100px;
    position: relative;
    margin-bottom: 16px;
}

.rd-toggle-btn {
    background: transparent;
    border: none;
    color: var(--rd-fg-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    z-index: 2;
}

.rd-toggle-btn.active {
    color: var(--rd-bg);
    background: var(--rd-accent);
}

/* Progress Bar */
.rd-progress-container {
    width: 120px;
    height: 3px;
    background: var(--rd-line-strong);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rd-progress-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.rd-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--rd-accent);
    border-radius: 10px;
}

/* Grid Transitions */
.rd-grid {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rd-grid.hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

/* Footer */
.rd-footer { padding: 80px 0 40px; border-top: 1px solid var(--rd-line); }
.rd-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .rd-footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.rd-footer-fine {
    font-size: 12px;
    color: var(--rd-fg-dim);
    line-height: 1.6;
    margin-top: 24px;
    max-width: 600px;
}

.rd-footer a {
    display: inline-block;
    margin-right: 16px;
    text-decoration: none;
    color: var(--rd-fg-muted);
    font-size: 13px;
    transition: color .2s ease;
}

.rd-footer a:hover { color: var(--rd-fg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.hidden { display: none !important; }

@media (min-width: 600px) {
    .md-grid-2 { grid-template-columns: 1fr 1fr !important; }
}
