/*
 * =====================================================
 *  DEWROI v1.0 — Styles
 * =====================================================
 *  Brand Colours (from logo):
 *    Primary Blue   #2BAEE8  (water droplet)
 *    Gold           #F0A824  (crown)
 *    Dark Navy      #1C3557  (wordmark)
 * =====================================================
 */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue:        #2BAEE8;
    --blue-dark:   #1A96D0;
    --blue-light:  #EBF7FD;
    --gold:        #F0A824;
    --gold-dark:   #D9920E;
    --gold-light:  #FEF7E7;
    --navy:        #1C3557;
    --navy-mid:    #253F66;
    --navy-deep:   #111C28;
    --white:       #FFFFFF;
    --grey-light:  #F8F9FA;
    --grey:        #E9ECEF;
    --text-body:   #4A5568;
    --text-muted:  #718096;
    --mono:        'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --radius:      12px;
    --radius-lg:   20px;
    --shadow:      0 4px 20px rgba(28, 53, 87, 0.08);
    --shadow-lg:   0 8px 40px rgba(28, 53, 87, 0.14);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-blue { color: var(--blue); }
.text-gold  { color: var(--gold); }

em { font-style: italic; color: var(--blue); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--blue);
    color: white;
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(43, 174, 232, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(43, 174, 232, 0.08);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 168, 36, 0.35);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 22px;
    font-size: 14px;
}
.btn-ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

/* ---- Section headings ---- */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.section-label.light {
    color: var(--gold);
    background: rgba(240, 168, 36, 0.15);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-title.light { color: white; }

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 56px;
    max-width: 660px;
}
.section-subtitle.light { color: rgba(255, 255, 255, 0.65); }

/* ---- Section CTA ---- */
.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ---- Scroll animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--grey);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow); }

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

.nav-logo img { display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
    background: var(--navy) !important;
    color: white !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue) !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: 100vh;
    background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, #1E4D7A 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(43, 174, 232, 0.09) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 168, 36, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-title .text-blue { color: var(--blue); }

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Terminal visual */
.terminal {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    font-family: var(--mono);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #161B22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #FF5F57; }
.dot.amber  { background: #FFBD2E; }
.dot.green  { background: #28CA41; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--mono);
}

.terminal-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 280px;
}

.term-line {
    font-size: 13.5px;
    line-height: 1.8;
}
.term-line.blank { height: 8px; }

.prompt {
    color: var(--blue);
    margin-right: 8px;
    font-weight: 600;
}
.cmd  { color: #E2E8F0; }
.arg  { color: var(--gold); }

.output  { color: rgba(255, 255, 255, 0.45); padding-left: 20px; }
.success { color: #28CA41; padding-left: 20px; font-weight: 600; }

.bar {
    color: var(--blue);
    font-weight: 600;
}

.cursor {
    color: var(--blue);
    animation: blink 1.1s step-end infinite;
    margin-left: 4px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}


/* ============================================================
   EXPERTISE
   ============================================================ */

.expertise {
    padding: 112px 0;
    background: var(--white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.expertise-card {
    position: relative;
    padding: 36px 32px;
    background: var(--grey-light);
    border-radius: var(--radius);
    border: 1px solid var(--grey);
    transition: all 0.3s ease;
    overflow: hidden;
}
.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    background: white;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-accent.blue { background: var(--blue); }
.card-accent.gold { background: var(--gold); }

.expertise-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.expertise-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.expertise-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.expertise-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.expertise-tags li {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--navy);
    background: white;
    border: 1px solid var(--grey);
    padding: 3px 10px;
    border-radius: 4px;
}
.expertise-card:hover .expertise-tags li {
    background: var(--grey-light);
}


/* ============================================================
   APPROACH
   ============================================================ */

.approach {
    padding: 112px 0;
    background: var(--navy);
}

.approach .section-title {
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
    position: relative;
}
.step-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.step-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
}

.step-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
}


/* ============================================================
   VALUES
   ============================================================ */

.values {
    padding: 112px 0;
    background: var(--grey-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.value-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--grey);
    transition: all 0.3s ease;
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.value-icon.blue { background: var(--blue-light); }
.value-icon.gold { background: var(--gold-light); }

.value-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.value-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}


/* ============================================================
   ABOUT
   ============================================================ */

.about {
    padding: 112px 0;
    background: white;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: center;
}

.about-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-stat {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.about-stat:first-child { padding-top: 0; }
.about-stat:last-child  { border-bottom: none; padding-bottom: 0; }

.stat-big {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}
.stat-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    max-width: 200px;
}

.about-content .section-title {
    margin-bottom: 24px;
}
.about-content p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-content .btn {
    margin-top: 12px;
}


/* ============================================================
   QUESTIONNAIRE
   ============================================================ */

.quiz-section {
    padding: 112px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.quiz-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(43, 174, 232, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.quiz-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}
.quiz-header .section-subtitle {
    margin: 0 auto;
}

.quiz-wrapper {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Progress bar */
.quiz-progress-bar {
    margin-bottom: 40px;
    text-align: center;
}

.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 2px;
    width: 25%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.prog-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}
.prog-step.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
.prog-step.done {
    background: rgba(43, 174, 232, 0.3);
    border-color: var(--blue);
    color: var(--blue);
}

.progress-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--mono);
}

/* Quiz steps */
.quiz-step {
    display: none;
    animation: fadeSlide 0.35s ease;
}
.quiz-step.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideBack {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.quiz-step.going-back { animation: fadeSlideBack 0.35s ease; }

.step-question {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-note {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
}

/* Step 1 — answer cards */
.answer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 8px;
}

.answer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px 22px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.answer-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(43, 174, 232, 0.4);
}
.answer-card.selected {
    background: rgba(43, 174, 232, 0.15);
    border-color: var(--blue);
}

.answer-icon {
    font-size: 28px;
    margin-bottom: 4px;
}
.answer-card strong {
    font-size: 16px;
    font-weight: 700;
    color: white;
}
.answer-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin: 0;
}

/* Step 2 — checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.checkbox-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(43, 174, 232, 0.35);
}
.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.checkbox-card input:checked ~ .cb-check {
    opacity: 1;
    color: var(--blue);
}
.checkbox-card:has(input:checked) {
    background: rgba(43, 174, 232, 0.12);
    border-color: var(--blue);
}

.cb-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cb-icon { font-size: 20px; }
.cb-content span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.cb-check {
    font-size: 14px;
    font-weight: 700;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Step 1 — textarea */
.quiz-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    font-family: inherit;
    padding: 18px 20px;
    line-height: 1.65;
    resize: vertical;
    min-height: 160px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 8px;
}
.quiz-textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Character counter */
.char-counter {
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    transition: color 0.2s;
}
.char-counter--warn  { color: var(--gold); }
.char-counter--limit { color: #e05252; }
.quiz-textarea:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Step 4 — contact fields */
.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group { display: flex; flex-direction: column; }

.contact-fields input,
.contact-fields textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.contact-fields input:focus,
.contact-fields textarea:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.09);
}
.contact-fields textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Hidden field */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Privacy agreement checkbox */
.privacy-check {
    margin-top: 16px;
    position: relative;
    z-index: 2; /* Above the turnstile widget stacking context */
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    cursor: pointer;
}

.consent-label span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* Privacy policy link inside consent label */
.consent-label a {
    color: var(--blue);
}
.consent-label a:hover {
    color: var(--blue-dark);
}

/* Security widget */
#turnstile-widget {
    margin: 20px 0 0;
    min-height: 70px;
    position: relative;
    z-index: 1; /* Creates stacking context — traps iframe's z-index inside */
}


/* Disabled submit button */
.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Nav between steps */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

/* Success state */
.quiz-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    animation: fadeSlide 0.4s ease;
}
.quiz-success.active { display: block; }

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(40, 202, 65, 0.15);
    border: 2px solid #28CA41;
    color: #28CA41;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.quiz-success h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.quiz-success p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.success-note {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--navy-deep);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand img { margin-bottom: 14px; }
.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.65;
}

.footer-links h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.52);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.22);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }
    .hero-subtitle  { max-width: 100%; }
    .hero-actions   { justify-content: center; }
    .hero-visual    { max-width: 560px; margin: 0 auto; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    /* Mobile nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--grey);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links li   { width: 100%; }
    .nav-links a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid var(--grey);
        text-align: left;
    }
    .nav-links .nav-cta {
        margin: 16px 24px 20px;
        display: block;
        text-align: center;
        border-radius: 8px;
        padding: 12px 24px !important;
        border-bottom: none !important;
    }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Questionnaire */
    .answer-grid   { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .form-row      { grid-template-columns: 1fr; }

    .step-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }
    .step-nav .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid { grid-template-columns: 1fr; }

    .about-card {
        padding: 28px 24px;
    }
}

/* Fallback for :has() in older browsers */
@supports not (selector(:has(*))) {
    .checkbox-card input:checked + .cb-content {
        color: var(--blue);
    }
}
