        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --purple-deep: hsl(261, 49%, 21%);
            --purple-main: hsl(262, 39%, 40%);
            --purple-light: hsl(265, 33%, 57%);
            --gold-main: hsl(41, 61%, 56%);
            --gold-light: hsl(43, 71%, 69%);
            --white: hsl(0, 0%, 100%);
            --gray-light: hsl(260, 23%, 97%);
            --gray-mid: hsl(260, 21%, 92%);
            --gray-text: hsl(240, 7%, 45%);
            --green-main: hsl(122, 39%, 49%);
            --green-dark: hsl(123, 46%, 34%);
            --green-light: hsl(125, 39%, 94%);
            --blue-main: hsl(207, 90%, 54%);
            --blue-dark: hsl(212, 80%, 42%);
            --blue-light: hsl(205, 87%, 94%);
            --orange-main: hsl(36, 100%, 50%);
            --orange-dark: hsl(21, 100%, 45%);
            --orange-light: hsl(37, 100%, 94%);
            --red-main: hsl(1, 77%, 55%);
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--gray-light);
            color: var(--purple-deep);
            line-height: 1.6;
        }

        /* Navigation */
        .nav {
            background: var(--white);
            border-bottom: 1px solid var(--gray-mid);
            padding: 16px 40px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--purple-deep);
            text-decoration: none;
        }

        .logo span { color: var(--gold-main); }

        .nav-links a {
            color: var(--gray-text);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
        }

        /* Hero Header */
        .hero {
            background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 100%);
            padding: 60px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, hsl(41, 61%, 56%, 0.15) 0%, transparent 70%);
        }

        .hero-inner {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: hsl(0, 0%, 100%, 0.15);
            padding: 8px 16px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            color: var(--white);
            margin-bottom: 20px;
        }

        .hero-badge svg {
            width: 16px;
            height: 16px;
            stroke: var(--gold-light);
            stroke-width: 2;
            fill: none;
        }

        .hero h1 {
            font-family: 'Fraunces', serif;
            font-size: 40px;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .hero p {
            font-size: 18px;
            color: var(--purple-light);
            max-width: 550px;
            margin: 0 auto;
        }

        /* Main Container */
        .calculator-container {
            max-width: 1100px;
            margin: -40px auto 60px;
            padding: 0 24px;
            position: relative;
            z-index: 10;
        }

        .calculator-grid {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 32px;
            align-items: start;
        }

        /* Input Panel */
        .input-panel {
            background: var(--white);
            border-radius: 20px;
            padding: 36px;
            box-shadow: 0 10px 40px hsl(261, 49%, 21%, 0.08);
        }

        .panel-header {
            margin-bottom: 28px;
        }

        .panel-header h2 {
            font-family: 'Fraunces', serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--purple-deep);
            margin-bottom: 6px;
        }

        .panel-header p {
            font-size: 14px;
            color: var(--gray-text);
        }

        .input-section {
            margin-bottom: 32px;
        }

        .input-section:last-child {
            margin-bottom: 0;
        }

        .section-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--gray-mid);
        }

        .section-label.recovery { color: var(--green-dark); }
        .section-label.reactivation { color: var(--blue-dark); }
        .section-label.conversion { color: var(--orange-dark); }
        .section-label.retention { color: var(--purple-main); }

        .section-label svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group:last-child {
            margin-bottom: 0;
        }

        .input-group label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            font-weight: 500;
            color: var(--purple-deep);
            margin-bottom: 8px;
        }

        .input-group label .hint {
            font-weight: 400;
            font-size: 12px;
            color: var(--gray-text);
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper input {
            width: 100%;
            padding: 14px 16px;
            padding-left: 36px;
            border: 2px solid var(--gray-mid);
            border-radius: 10px;
            font-size: 16px;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        .input-wrapper input:focus {
            outline: none;
            border-color: var(--purple-main);
        }

        .input-wrapper .prefix {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: var(--gray-text);
            pointer-events: none;
        }

        .input-wrapper .suffix {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
            color: var(--gray-text);
            pointer-events: none;
        }

        .input-wrapper.no-prefix input {
            padding-left: 16px;
        }

        .slider-group {
            margin-bottom: 20px;
        }

        .slider-group label {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 500;
            color: var(--purple-deep);
            margin-bottom: 10px;
        }

        .slider-group label .value {
            font-weight: 700;
            color: var(--purple-main);
        }

        .slider-wrapper {
            position: relative;
        }

        .slider-wrapper input[type="range"] {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--gray-mid);
            outline: none;
            -webkit-appearance: none;
        }

        .slider-wrapper input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--purple-main);
            cursor: pointer;
            border: 3px solid var(--white);
            box-shadow: 0 2px 8px hsl(262, 39%, 40%, 0.3);
        }

        .slider-wrapper input[type="range"]::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--purple-main);
            cursor: pointer;
            border: 3px solid var(--white);
            box-shadow: 0 2px 8px hsl(262, 39%, 40%, 0.3);
        }

        .slider-labels {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--gray-text);
            margin-top: 6px;
        }

        /* Results Panel */
        .results-panel {
            background: var(--white);
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 10px 40px hsl(261, 49%, 21%, 0.08);
            position: sticky;
            top: 100px;
        }

        .total-opportunity {
            text-align: center;
            padding-bottom: 24px;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--gray-mid);
        }

        .total-label {
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--gray-text);
            margin-bottom: 8px;
        }

        .total-amount {
            font-family: 'Fraunces', serif;
            font-size: 48px;
            font-weight: 800;
            color: var(--purple-deep);
            line-height: 1;
            margin-bottom: 4px;
        }

        .total-period {
            font-size: 15px;
            color: var(--gray-text);
        }

        .breakdown-list {
            margin-bottom: 24px;
        }

        .breakdown-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            border-bottom: 1px solid var(--gray-light);
        }

        .breakdown-item:last-child {
            border-bottom: none;
        }

        .breakdown-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .breakdown-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .breakdown-icon.recovery { background: var(--green-light); }
        .breakdown-icon.reactivation { background: var(--blue-light); }
        .breakdown-icon.conversion { background: var(--orange-light); }
        .breakdown-icon.retention { background: hsl(262, 39%, 40%, 0.1); }

        .breakdown-icon svg {
            width: 18px;
            height: 18px;
            stroke-width: 2;
            fill: none;
        }

        .breakdown-icon.recovery svg { stroke: var(--green-dark); }
        .breakdown-icon.reactivation svg { stroke: var(--blue-dark); }
        .breakdown-icon.conversion svg { stroke: var(--orange-dark); }
        .breakdown-icon.retention svg { stroke: var(--purple-main); }

        .breakdown-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--purple-deep);
        }

        .breakdown-desc {
            font-size: 12px;
            color: var(--gray-text);
        }

        .breakdown-amount {
            font-family: 'Fraunces', serif;
            font-size: 20px;
            font-weight: 700;
        }

        .breakdown-item.recovery .breakdown-amount { color: var(--green-dark); }
        .breakdown-item.reactivation .breakdown-amount { color: var(--blue-dark); }
        .breakdown-item.conversion .breakdown-amount { color: var(--orange-dark); }
        .breakdown-item.retention .breakdown-amount { color: var(--purple-main); }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 100%);
            border-radius: 16px;
            padding: 24px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, hsl(41, 61%, 56%, 0.2) 0%, transparent 70%);
        }

        .cta-section h3 {
            font-family: 'Fraunces', serif;
            font-size: 18px;
            color: var(--white);
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
        }

        .cta-section p {
            font-size: 13px;
            color: var(--purple-light);
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 28px;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            text-decoration: none;
            position: relative;
            z-index: 1;
        }

        .btn-gold {
            background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
            color: var(--purple-deep);
            width: 100%;
        }

        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px hsl(41, 61%, 56%, 0.4);
        }

        .btn svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 2.5;
            fill: none;
        }

        /* Assumptions Note */
        .assumptions {
            margin-top: 20px;
            padding: 16px;
            background: var(--gray-light);
            border-radius: 10px;
            font-size: 12px;
            color: var(--gray-text);
        }

        .assumptions-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-weight: 600;
            color: var(--purple-main);
        }

        .assumptions-toggle svg {
            width: 14px;
            height: 14px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
            transition: transform 0.2s;
        }

        .assumptions-toggle.open svg {
            transform: rotate(180deg);
        }

        .assumptions-content {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--gray-mid);
            line-height: 1.6;
        }

        .assumptions-content ul {
            margin: 0;
            padding-left: 16px;
        }

        .assumptions-content li {
            margin-bottom: 4px;
        }

        /* Email Gate Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: hsl(261, 49%, 21%, 0.8);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 24px;
        }

        .modal {
            background: var(--white);
            border-radius: 24px;
            padding: 40px;
            max-width: 480px;
            width: 100%;
            text-align: center;
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 32px;
            height: 32px;
            border: none;
            background: var(--gray-light);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close svg {
            width: 18px;
            height: 18px;
            stroke: var(--gray-text);
            stroke-width: 2;
            fill: none;
        }

        .modal-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--gold-main) 0%, var(--gold-light) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }

        .modal-icon svg {
            width: 28px;
            height: 28px;
            stroke: var(--purple-deep);
            stroke-width: 2;
            fill: none;
        }

        .modal h2 {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--purple-deep);
            margin-bottom: 12px;
        }

        .modal p {
            font-size: 15px;
            color: var(--gray-text);
            margin-bottom: 24px;
        }

        .modal-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .modal-form input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--gray-mid);
            border-radius: 10px;
            font-size: 16px;
            font-family: inherit;
        }

        .modal-form input:focus {
            outline: none;
            border-color: var(--purple-main);
        }

        .privacy-note {
            font-size: 12px;
            color: var(--gray-text);
            margin-top: 12px;
        }

        .privacy-note svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
            vertical-align: -1px;
            margin-right: 4px;
        }

        /* Footer */
        .footer {
            background: var(--white);
            border-top: 1px solid var(--gray-mid);
            padding: 32px 40px;
            text-align: center;
            color: var(--gray-text);
            font-size: 14px;
        }

        .footer a {
            color: var(--purple-main);
            text-decoration: none;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .calculator-grid {
                grid-template-columns: 1fr;
            }
            .results-panel {
                position: static;
            }
            .hero h1 {
                font-size: 32px;
            }
        }

        @media (max-width: 600px) {
            .input-panel, .results-panel {
                padding: 24px;
            }
            .total-amount {
                font-size: 36px;
            }
        }
