@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700&family=Caveat:wght@500;600&display=swap');

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

        :root {
            /* CTC Brand Colors */
            --grape: #6B00B8;           /* accent only */
            --moonstone: #49AFC1;
            --delft-blue: #223759;
            --red-violet: #B80077;      /* accent only */
            --paynes-gray: #306373;
            --platinum: #E2E2E2;
            --amber: #FDBD0D;           /* accent only */
            
            /* Derived colors for UI */
            --moonstone-light: #7bc4d1;
            --moonstone-dark: #3a8a99;
            --delft-light: #3a5a8a;
            --paynes-light: #4a8a9a;
            --paynes-dark: #245058;
            --cream: #FAFAFA;
            --white: #FFFFFF;
            --text-dark: #223759;       /* Using Delft Blue for text */
            --text-muted: #5a6a7a;
        }

        body {
            /* Europa with fallbacks */
            font-family: 'europa', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--cream);
            color: var(--text-dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        .handwritten {
            font-family: 'Caveat', cursive;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, var(--delft-blue) 0%, var(--paynes-gray) 100%);
            padding: 2.5rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(73, 175, 193, 0.15) 0%, transparent 60%);
            animation: shimmer 15s infinite linear;
        }

        @keyframes shimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
            position: relative;
            z-index: 1;
        }

        header p {
            color: rgba(255,255,255,0.9);
            font-size: 1.1rem;
            margin-top: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .tagline {
            font-family: 'Caveat', cursive;
            font-size: 1.6rem !important;
            margin-top: 1rem !important;
            color: var(--amber) !important;
        }

        /* Navigation Tabs */
        .nav-tabs {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: 1.5rem;
            background: var(--white);
            box-shadow: 0 2px 10px rgba(34, 55, 89, 0.08);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-tab {
            padding: 0.75rem 1.5rem;
            border: none;
            background: var(--platinum);
            border-radius: 50px;
            cursor: pointer;
            font-family: 'europa', 'Nunito Sans', sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        .nav-tab:hover {
            background: var(--moonstone);
            color: white;
        }

        .nav-tab.active {
            background: var(--delft-blue);
            color: white;
            transform: scale(1.05);
        }

        /* Sections */
        .section {
            display: none;
            padding: 2rem;
            max-width: 900px;
            margin: 0 auto;
            animation: fadeIn 0.5s ease;
        }

        .section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .section-title {
            text-align: center;
            margin-bottom: 2rem;
        }

        .section-title h2 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--delft-blue);
            margin-bottom: 0.5rem;
        }

        .section-title p {
            color: var(--text-muted);
        }

        /* Cards */
        .card {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 20px rgba(34, 55, 89, 0.06);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(34, 55, 89, 0.1);
        }

        .card h3 {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--delft-blue);
        }

        .card-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        /* Stage Assessment */
        .assessment-question {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 1rem;
            text-align: center;
            box-shadow: 0 4px 20px rgba(34, 55, 89, 0.06);
        }

        .assessment-question h3 {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--delft-blue);
            justify-content: center;
        }

        .assessment-question p {
            color: var(--text-muted);
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .btn-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-family: 'europa', 'Nunito Sans', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .btn-yes {
            background: var(--moonstone);
            color: white;
        }

        .btn-yes:hover {
            background: var(--moonstone-dark);
            transform: scale(1.05);
        }

        .btn-no {
            background: var(--paynes-gray);
            color: white;
        }

        .btn-no:hover {
            background: var(--paynes-dark);
            transform: scale(1.05);
        }

        .btn-primary {
            background: var(--moonstone);
            color: white;
        }

        .btn-primary:hover {
            background: var(--moonstone-dark);
            transform: scale(1.05);
        }

        .btn-secondary {
            background: var(--delft-blue);
            color: white;
        }

        .btn-secondary:hover {
            background: var(--delft-light);
            transform: scale(1.05);
        }

        /* Stage Result */
        .stage-result {
            background: linear-gradient(135deg, var(--delft-blue), var(--paynes-gray));
            border-radius: 20px;
            padding: 2.5rem;
            text-align: center;
            color: white;
        }

        .stage-number {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1;
            color: var(--amber);
        }

        .stage-name {
            font-family: 'Caveat', cursive;
            font-size: 2.5rem;
            margin: 0.5rem 0 1rem;
        }

        .stage-role {
            background: rgba(255,255,255,0.2);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            display: inline-block;
            margin-bottom: 1.5rem;
        }

        .stage-description {
            font-size: 1.1rem;
            opacity: 0.95;
            max-width: 600px;
            margin: 0 auto;
        }

        /* UCUE Framework */
        .ucue-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .ucue-card {
            background: var(--white);
            border-radius: 20px;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 3px solid transparent;
        }

        .ucue-card:hover, .ucue-card.active {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(34, 55, 89, 0.12);
        }

        .ucue-card.you { border-color: var(--amber); }
        .ucue-card.connect { border-color: var(--red-violet); }
        .ucue-card.understand { border-color: var(--moonstone); }
        .ucue-card.empower { border-color: var(--grape); }

        .ucue-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            margin: 0 auto 1rem;
        }

        .ucue-card.you .ucue-icon { background: var(--amber); }
        .ucue-card.connect .ucue-icon { background: var(--red-violet); }
        .ucue-card.understand .ucue-icon { background: var(--moonstone); }
        .ucue-card.empower .ucue-icon { background: var(--grape); }

        .ucue-card h4 {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--delft-blue);
        }

        .ucue-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* Behavior Funnel */
        .funnel-container {
            position: relative;
            max-width: 500px;
            margin: 2rem auto;
        }

        .funnel-layer {
            padding: 1rem 1.5rem;
            margin: 0 auto;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            color: white;
            font-weight: 600;
        }

        .funnel-layer:hover {
            transform: scale(1.02);
            box-shadow: 0 5px 20px rgba(34, 55, 89, 0.25);
        }

        .funnel-layer.expanded {
            transform: scale(1.05);
        }

        .layer-basic { background: var(--amber); color: var(--delft-blue); width: 100%; }
        .layer-safety { background: var(--red-violet); width: 90%; }
        .layer-connection { background: var(--moonstone); width: 80%; }
        .layer-sensory { background: var(--paynes-gray); width: 70%; }
        .layer-skills { background: var(--grape); width: 60%; }
        .layer-desires { background: var(--delft-blue); width: 50%; }

        .funnel-details {
            display: none;
            background: var(--white);
            border-radius: 15px;
            padding: 1.5rem;
            margin-top: 1rem;
            box-shadow: 0 4px 20px rgba(34, 55, 89, 0.1);
            animation: slideDown 0.3s ease;
        }

        .funnel-details.show {
            display: block;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .funnel-details h4 {
            margin-bottom: 1rem;
            color: var(--delft-blue);
            font-weight: 700;
        }

        .funnel-details ul {
            list-style: none;
            padding: 0;
        }

        .funnel-details li {
            padding: 0.5rem 0;
            padding-left: 1.5rem;
            position: relative;
            color: var(--text-muted);
        }

        .funnel-details li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--moonstone);
            font-weight: bold;
        }

        /* 1:1:1 Plan Builder */
        .plan-builder {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(34, 55, 89, 0.06);
        }

        .plan-section {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 2px dashed var(--platinum);
        }

        .plan-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .plan-section h4 {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--delft-blue);
        }

        .plan-number {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--moonstone);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        .option-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.75rem;
        }

        .option-btn {
            padding: 1rem;
            border: 2px solid var(--platinum);
            background: var(--white);
            border-radius: 12px;
            cursor: pointer;
            font-family: 'europa', 'Nunito Sans', sans-serif;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            text-align: left;
            color: var(--text-dark);
        }

        .option-btn:hover {
            border-color: var(--moonstone);
            background: rgba(73, 175, 193, 0.08);
        }

        .option-btn.selected {
            border-color: var(--moonstone);
            background: var(--moonstone);
            color: white;
        }

        .custom-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--platinum);
            border-radius: 12px;
            font-family: 'europa', 'Nunito Sans', sans-serif;
            font-size: 1rem;
            margin-top: 0.75rem;
            transition: border-color 0.3s ease;
            color: var(--text-dark);
        }

        .custom-input:focus {
            outline: none;
            border-color: var(--moonstone);
        }

        .custom-input::placeholder {
            color: var(--text-muted);
        }

        /* Plan Display */
        .my-plan {
            background: linear-gradient(135deg, var(--cream), var(--white));
            border: 3px solid var(--moonstone);
            border-radius: 20px;
            padding: 2rem;
            margin-top: 2rem;
        }

        .my-plan h3 {
            text-align: center;
            margin-bottom: 1.5rem;
            color: var(--delft-blue);
            justify-content: center;
        }

        .plan-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: var(--white);
            border-radius: 12px;
        }

        .plan-item-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .plan-item-content h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
            font-weight: 600;
        }

        .plan-item-content p {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--delft-blue);
        }

        /* Storm Categories */
        .storm-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .storm-card {
            background: var(--white);
            border-radius: 20px;
            padding: 1.5rem;
            text-align: center;
            transition: all 0.3s ease;
            border-left: 5px solid;
        }

        .storm-1 { border-left-color: var(--moonstone); }
        .storm-2 { border-left-color: var(--amber); }
        .storm-3 { border-left-color: var(--red-violet); }

        .storm-card h4 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--delft-blue);
        }

        .storm-card .storm-type {
            font-family: 'Caveat', cursive;
            font-size: 1.3rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }

        .storm-card ul {
            text-align: left;
            list-style: none;
            padding: 0;
        }

        .storm-card li {
            padding: 0.3rem 0;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* SBA Section */
        .sba-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .sba-step {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .sba-step::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
        }

        .sba-step.stop::before { background: var(--red-violet); }
        .sba-step.breathe::before { background: var(--moonstone); }
        .sba-step.anchor::before { background: var(--delft-blue); }

        .sba-step h4 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--delft-blue);
        }

        .sba-step p {
            color: var(--text-muted);
        }

        /* Encouragement Banner */
        .encouragement {
            background: linear-gradient(135deg, var(--delft-blue), var(--paynes-gray));
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            color: white;
            margin: 2rem 0;
        }

        .encouragement p {
            font-family: 'Caveat', cursive;
            font-size: 2rem;
        }

        /* Accent encouragement variant */
        .encouragement.accent {
            background: linear-gradient(135deg, var(--grape), var(--red-violet));
        }

        /* Progress indicator */
        .progress-bar {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .progress-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--platinum);
            transition: all 0.3s ease;
        }

        .progress-dot.active {
            background: var(--moonstone);
            transform: scale(1.2);
        }

        .progress-dot.completed {
            background: var(--delft-blue);
        }

        /* Responsive */
        @media (max-width: 768px) {
            header h1 {
                font-size: 1.8rem;
            }

            .nav-tabs {
                gap: 0.3rem;
                padding: 1rem;
            }

            .nav-tab {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }

            .section {
                padding: 1rem;
            }

            .stage-number {
                font-size: 3rem;
            }

            .stage-name {
                font-size: 2rem;
            }
        }

        /* Huddle Builder */
        .huddle-type-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .huddle-type-btn {
            padding: 1.25rem 1rem;
            border: 2px solid var(--platinum);
            background: var(--white);
            border-radius: 15px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            font-family: 'europa', 'Nunito Sans', sans-serif;
        }

        .huddle-type-btn:hover {
            border-color: var(--grape);
            transform: translateY(-3px);
        }

        .huddle-type-btn.selected {
            border-color: var(--grape);
            background: var(--grape);
            color: white;
        }

        .huddle-type-btn .emoji {
            font-size: 2rem;
            display: block;
            margin-bottom: 0.5rem;
        }

        .huddle-type-btn .label {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .huddle-agenda {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            margin-top: 1.5rem;
            border: 2px solid var(--grape);
        }

        .agenda-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed var(--platinum);
        }

        .agenda-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .agenda-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--grape);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex-shrink: 0;
        }

        .agenda-content h5 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            color: var(--delft-blue);
        }

        .agenda-content p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        /* Superpowers Section */
        .superpower-form {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
        }

        .superpower-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1rem;
        }

        .superpower-row .arrow {
            font-size: 1.5rem;
            color: var(--moonstone);
        }

        .superpower-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--platinum);
            border-radius: 12px;
            font-family: 'europa', 'Nunito Sans', sans-serif;
            font-size: 1rem;
            color: var(--text-dark);
        }

        .superpower-input:focus {
            outline: none;
            border-color: var(--moonstone);
        }

        .superpower-input.struggle {
            border-color: var(--red-violet);
            background: rgba(184, 0, 119, 0.05);
        }

        .superpower-input.power {
            border-color: var(--moonstone);
            background: rgba(73, 175, 193, 0.05);
        }

        @media (max-width: 600px) {
            .superpower-row {
                grid-template-columns: 1fr;
            }

            .superpower-row .arrow {
                transform: rotate(90deg);
                text-align: center;
            }
        }

        /* Quick Reference Cards */
        .quick-ref {
            background: linear-gradient(135deg, rgba(73, 175, 193, 0.1), rgba(48, 99, 115, 0.1));
            border-radius: 20px;
            padding: 1.5rem;
            margin: 1rem 0;
        }

        .quick-ref h5 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--delft-blue);
            margin-bottom: 0.75rem;
        }

        .quick-ref ul {
            list-style: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .quick-ref li {
            background: var(--white);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Accent highlights */
        .highlight-amber {
            color: var(--amber);
        }

        .highlight-grape {
            color: var(--grape);
        }

        .highlight-violet {
            color: var(--red-violet);
        }

        /* Print Styles */
        @media print {
            .nav-tabs, .btn {
                display: none;
            }

            .section {
                display: block !important;
                page-break-after: always;
            }

            .my-plan {
                border: 2px solid #333;
            }
        }
