/* =============================================================================
   Rain Bird IrriDesign Pro — Brand Design System
   Homeowner-facing irrigation design wizard
   Built from Rain Bird Brand Guidelines (January 2026)
   ============================================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* =============================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================================= */
:root {
    /* ---- Brand Colors ---- */
    --rb-green:             #00823C;
    --rb-green-dark:        #003719;
    --rb-green-accent:      #005A28;
    --rb-green-light:       #7DFA73;
    --rb-yellow-accent:     #E6FFA0;
    --rb-warm-white:        #FFFFEB;

    /* ---- Taupe Scale (Text & Neutrals) ---- */
    --rb-taupe-500:         #0F190A;
    --rb-taupe-400:         #2A2F28;
    --rb-taupe-300:         #4A4F48;
    --rb-taupe-200:         #8A8F88;
    --rb-taupe-100:         #D4D9D2;

    /* ---- Semantic Aliases ---- */
    --rb-text-primary:      var(--rb-taupe-500);
    --rb-text-secondary:    var(--rb-taupe-400);
    --rb-text-tertiary:     var(--rb-taupe-300);
    --rb-text-disabled:     var(--rb-taupe-200);
    --rb-bg:                var(--rb-warm-white);
    --rb-border:            var(--rb-taupe-200);
    --rb-border-light:      var(--rb-taupe-100);
    --rb-divider:           var(--rb-taupe-100);

    /* ---- Alert / Status (NO RED) ---- */
    --rb-warning-bg:        #FFF3CD;
    --rb-warning-text:      #856404;
    --rb-warning-border:    #FFEEBA;
    --rb-info-bg:           #E8F8E8;
    --rb-info-text:         #00823C;
    --rb-info-border:       #B8E6B8;
    --rb-success-bg:        #D4EDDA;
    --rb-success-text:      #155724;
    --rb-success-border:    #C3E6CB;

    /* ---- Typography ---- */
    --rb-font-heading:      'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rb-font-body:         'Noto Serif', Georgia, 'Times New Roman', serif;
    --rb-font-ui:           'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --rb-text-hero:         48px;
    --rb-text-h1:           36px;
    --rb-text-h2:           28px;
    --rb-text-h3:           22px;
    --rb-text-body:         18px;
    --rb-text-small:        16px;
    --rb-text-caption:      14px;
    --rb-text-tiny:         13px;

    /* ---- Border Radius ---- */
    --rb-radius-sm:         8px;
    --rb-radius-md:         12px;
    --rb-radius-lg:         16px;
    --rb-radius-xl:         24px;

    /* ---- Shadows ---- */
    --rb-shadow-sm:         0 1px 3px rgba(15, 25, 10, 0.08);
    --rb-shadow-md:         0 4px 12px rgba(15, 25, 10, 0.12);
    --rb-shadow-lg:         0 8px 24px rgba(15, 25, 10, 0.16);
    --rb-shadow-xl:         0 12px 40px rgba(15, 25, 10, 0.20);

    /* ---- Spacing ---- */
    --rb-space-1:           4px;
    --rb-space-2:           8px;
    --rb-space-3:           12px;
    --rb-space-4:           16px;
    --rb-space-5:           24px;
    --rb-space-6:           32px;
    --rb-space-7:           48px;
    --rb-space-8:           64px;
    --rb-space-9:           96px;

    /* ---- Layout ---- */
    --rb-max-width:         1200px;
    --rb-max-width-narrow:  800px;
    --rb-max-width-wide:    1400px;
    --rb-sidebar-width:     320px;
    --rb-nav-height:        72px;

    /* ---- Transitions ---- */
    --rb-transition:        0.3s ease;
    --rb-transition-fast:   0.15s ease;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-body);
    line-height: 1.6;
    color: var(--rb-text-primary);
    background-color: var(--rb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--rb-green);
    text-decoration: none;
    transition: color var(--rb-transition-fast);
}

a:hover {
    color: var(--rb-green-accent);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--rb-green);
    outline-offset: 2px;
    border-radius: 2px;
}

::selection {
    background: rgba(0, 130, 60, 0.2);
    color: var(--rb-taupe-500);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--rb-warm-white);
}

::-webkit-scrollbar-thumb {
    background: var(--rb-taupe-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rb-taupe-300);
}

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rb-font-heading);
    font-weight: 600;
    color: var(--rb-text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: var(--rb-text-h1); }
h2 { font-size: var(--rb-text-h2); }
h3 { font-size: var(--rb-text-h3); }

p {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-body);
    line-height: 1.7;
    color: var(--rb-text-secondary);
    margin-bottom: var(--rb-space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--rb-text-small);
}

/* Typography utility classes */
.rb-heading-1 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h1);
    font-weight: 700;
    line-height: 1.15;
    color: var(--rb-text-primary);
    letter-spacing: -0.02em;
}

.rb-heading-2 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h2);
    font-weight: 600;
    line-height: 1.2;
    color: var(--rb-text-primary);
    letter-spacing: -0.01em;
}

.rb-heading-3 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h3);
    font-weight: 600;
    line-height: 1.25;
    color: var(--rb-text-primary);
}

.rb-body-text {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-body);
    line-height: 1.7;
    color: var(--rb-text-secondary);
}

.rb-caption {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    line-height: 1.4;
    color: var(--rb-text-tertiary);
}

.rb-text-green {
    color: var(--rb-green);
}

.rb-text-center {
    text-align: center;
}

.rb-text-right {
    text-align: right;
}

/* =============================================================================
   4. LAYOUT
   ============================================================================= */

.rb-container {
    width: 100%;
    max-width: var(--rb-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rb-space-5);
    padding-right: var(--rb-space-5);
}

.rb-container-narrow {
    width: 100%;
    max-width: var(--rb-max-width-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rb-space-5);
    padding-right: var(--rb-space-5);
}

.rb-container-wide {
    width: 100%;
    max-width: var(--rb-max-width-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--rb-space-5);
    padding-right: var(--rb-space-5);
}

.rb-section {
    padding-top: var(--rb-space-8);
    padding-bottom: var(--rb-space-8);
}

.rb-divider {
    border: none;
    height: 1px;
    background-color: var(--rb-divider);
    margin: var(--rb-space-6) 0;
}

/* =============================================================================
   5. NAVIGATION
   ============================================================================= */

.rb-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--rb-nav-height);
    background-color: rgba(255, 255, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rb-border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 var(--rb-space-6);
    transition: box-shadow var(--rb-transition);
}

.rb-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--rb-max-width-wide);
    margin: 0 auto;
}

.rb-nav.scrolled {
    box-shadow: var(--rb-shadow-sm);
}

.rb-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--rb-space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.rb-nav-logo img {
    height: 36px;
    width: auto;
}

.rb-nav-logo span {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-small);
    font-weight: 600;
    color: var(--rb-text-primary);
    letter-spacing: -0.01em;
}

.rb-nav-links {
    display: flex;
    align-items: center;
    gap: var(--rb-space-6);
    margin-left: auto;
    list-style: none;
}

.rb-nav-links a {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    font-weight: 500;
    color: var(--rb-text-secondary);
    text-decoration: none;
    padding: var(--rb-space-2) 0;
    position: relative;
    transition: color var(--rb-transition-fast);
}

.rb-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--rb-green);
    transform: scaleX(0);
    transition: transform var(--rb-transition);
    transform-origin: center;
}

.rb-nav-links a:hover {
    color: var(--rb-green);
    text-decoration: none;
}

.rb-nav-links a:hover::after {
    transform: scaleX(1);
}

.rb-nav-links a.active {
    color: var(--rb-green);
}

.rb-nav-links a.active::after {
    transform: scaleX(1);
}

/* Hamburger menu toggle (mobile) */
.rb-nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: var(--rb-space-2);
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}

.rb-nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--rb-text-primary);
    border-radius: 1px;
    transition: all var(--rb-transition);
    position: absolute;
    left: 10px;
}

.rb-nav-mobile-toggle span:nth-child(1) { top: 14px; }
.rb-nav-mobile-toggle span:nth-child(2) { top: 21px; }
.rb-nav-mobile-toggle span:nth-child(3) { top: 28px; }

.rb-nav-mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 21px;
}

.rb-nav-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.rb-nav-mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 21px;
}

/* =============================================================================
   6. FOOTER
   ============================================================================= */

.rb-footer {
    background-color: var(--rb-green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--rb-space-8) 0 var(--rb-space-6);
}

.rb-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--rb-transition-fast);
}

.rb-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.rb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--rb-space-7);
    margin-bottom: var(--rb-space-7);
}

.rb-footer-brand {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-small);
    color: #ffffff;
    font-weight: 600;
    margin-bottom: var(--rb-space-4);
}

.rb-footer-brand img {
    height: 32px;
    margin-bottom: var(--rb-space-3);
    filter: brightness(0) invert(1);
}

.rb-footer-col h4 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-caption);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--rb-space-4);
    text-transform: none;
}

.rb-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-2);
}

.rb-footer-col ul li a {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
}

.rb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--rb-space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-tiny);
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   7. BUTTONS
   ============================================================================= */

.rb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rb-space-2);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-small);
    font-weight: 600;
    line-height: 1;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--rb-radius-sm);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition:
        background-color var(--rb-transition-fast),
        color var(--rb-transition-fast),
        border-color var(--rb-transition-fast),
        box-shadow var(--rb-transition),
        transform var(--rb-transition-fast);
}

.rb-btn:focus-visible {
    outline: 3px solid rgba(0, 130, 60, 0.4);
    outline-offset: 2px;
}

.rb-btn:disabled,
.rb-btn.disabled {
    background-color: var(--rb-taupe-200);
    color: #ffffff;
    border-color: var(--rb-taupe-200);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* Primary (filled green) */
.rb-btn-primary {
    background-color: var(--rb-green);
    color: #ffffff;
    border-color: var(--rb-green);
}

.rb-btn-primary:hover {
    background-color: var(--rb-green-accent);
    border-color: var(--rb-green-accent);
    box-shadow: var(--rb-shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.rb-btn-primary:active {
    background-color: var(--rb-green-dark);
    border-color: var(--rb-green-dark);
    transform: translateY(0);
    box-shadow: var(--rb-shadow-sm);
}

/* Secondary (outline green) */
.rb-btn-secondary {
    background-color: transparent;
    color: var(--rb-green);
    border-color: var(--rb-green);
}

.rb-btn-secondary:hover {
    background-color: var(--rb-green);
    color: #ffffff;
    box-shadow: var(--rb-shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.rb-btn-secondary:active {
    background-color: var(--rb-green-accent);
    color: #ffffff;
    transform: translateY(0);
    box-shadow: var(--rb-shadow-sm);
}

/* Outline (ghost / subtle) */
.rb-btn-outline {
    background-color: transparent;
    color: var(--rb-text-secondary);
    border-color: var(--rb-taupe-200);
}

.rb-btn-outline:hover {
    background-color: rgba(0, 130, 60, 0.06);
    color: var(--rb-green);
    border-color: var(--rb-green);
    text-decoration: none;
}

.rb-btn-outline:active {
    background-color: rgba(0, 130, 60, 0.1);
    transform: translateY(0);
}

/* Large CTA */
.rb-btn-lg {
    font-size: var(--rb-text-body);
    padding: 18px 40px;
    border-radius: var(--rb-radius-md);
}

/* Small */
.rb-btn-sm {
    font-size: var(--rb-text-caption);
    padding: 8px 16px;
    font-weight: 500;
}

/* Icon-only */
.rb-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--rb-radius-sm);
    background-color: transparent;
    color: var(--rb-text-tertiary);
    border: 1px solid var(--rb-border-light);
}

.rb-btn-icon:hover {
    color: var(--rb-green);
    border-color: var(--rb-green);
    background-color: rgba(0, 130, 60, 0.06);
}

.rb-btn-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 3px;
}

/* =============================================================================
   8. CARDS
   ============================================================================= */

.rb-card {
    background-color: var(--rb-warm-white);
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
    padding: var(--rb-space-5);
    box-shadow: var(--rb-shadow-sm);
    transition:
        box-shadow var(--rb-transition),
        border-color var(--rb-transition),
        transform var(--rb-transition);
}

.rb-card-elevated {
    background-color: var(--rb-warm-white);
    border: none;
    border-radius: var(--rb-radius-md);
    padding: var(--rb-space-5);
    box-shadow: var(--rb-shadow-md);
    transition:
        box-shadow var(--rb-transition),
        transform var(--rb-transition);
}

.rb-card-selected {
    background-color: rgba(125, 250, 115, 0.08);
    border: 2px solid var(--rb-green);
    border-radius: var(--rb-radius-md);
    padding: var(--rb-space-5);
    box-shadow: var(--rb-shadow-md);
}

.rb-card-interactive {
    cursor: pointer;
}

.rb-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--rb-shadow-md);
    border-color: var(--rb-taupe-200);
}

.rb-card-interactive:active {
    transform: translateY(0);
    box-shadow: var(--rb-shadow-sm);
}

/* =============================================================================
   9. FORMS
   ============================================================================= */

.rb-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-2);
    margin-bottom: var(--rb-space-5);
}

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

.rb-form-label {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    font-weight: 500;
    color: var(--rb-text-secondary);
    line-height: 1.3;
}

.rb-form-label .required {
    color: var(--rb-green);
    margin-left: 2px;
}

.rb-form-hint {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-tiny);
    font-style: italic;
    color: var(--rb-text-tertiary);
    line-height: 1.4;
}

/* Shared input base */
.rb-input,
.rb-select,
.rb-textarea {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-small);
    color: var(--rb-text-primary);
    background-color: var(--rb-warm-white);
    border: 1.5px solid var(--rb-taupe-200);
    border-radius: var(--rb-radius-sm);
    padding: 12px 16px;
    width: 100%;
    transition:
        border-color var(--rb-transition-fast),
        box-shadow var(--rb-transition-fast),
        background-color var(--rb-transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.rb-input::placeholder,
.rb-select::placeholder,
.rb-textarea::placeholder {
    color: var(--rb-taupe-300);
}

.rb-input:hover,
.rb-select:hover,
.rb-textarea:hover {
    border-color: var(--rb-taupe-300);
}

.rb-input:focus,
.rb-select:focus,
.rb-textarea:focus {
    outline: none;
    border-color: var(--rb-green);
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.15);
    background-color: #ffffff;
}

.rb-input:disabled,
.rb-select:disabled,
.rb-textarea:disabled {
    background-color: var(--rb-taupe-100);
    color: var(--rb-taupe-200);
    cursor: not-allowed;
    border-color: var(--rb-taupe-100);
}

/* Input error state */
.rb-input.error,
.rb-select.error,
.rb-textarea.error {
    border-color: var(--rb-warning-text);
    box-shadow: 0 0 0 3px rgba(133, 100, 4, 0.15);
}

/* Textarea */
.rb-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select dropdown arrow */
.rb-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4F48' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
}

.rb-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300823C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Input group (input with icon/button) */
.rb-input-group {
    display: flex;
    align-items: stretch;
    position: relative;
}

.rb-input-group .rb-input {
    border-radius: var(--rb-radius-sm) 0 0 var(--rb-radius-sm);
    flex: 1;
}

.rb-input-group .rb-btn {
    border-radius: 0 var(--rb-radius-sm) var(--rb-radius-sm) 0;
    border-left: none;
}

.rb-input-group-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rb-taupe-300);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.rb-input-group-icon + .rb-input {
    padding-left: 44px;
}

.rb-input-group-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 3px;
}

/* Radio card */
.rb-radio-card {
    display: flex;
    align-items: flex-start;
    gap: var(--rb-space-4);
    padding: var(--rb-space-5);
    border: 1.5px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
    background-color: var(--rb-warm-white);
    cursor: pointer;
    transition:
        border-color var(--rb-transition-fast),
        background-color var(--rb-transition-fast),
        box-shadow var(--rb-transition);
    user-select: none;
    position: relative;
}

.rb-radio-card:hover {
    border-color: var(--rb-taupe-200);
    box-shadow: var(--rb-shadow-sm);
}

.rb-radio-card input[type="radio"],
.rb-radio-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rb-radio-card .rb-radio-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--rb-taupe-200);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color var(--rb-transition-fast),
        background-color var(--rb-transition-fast);
    margin-top: 2px;
}

.rb-radio-card .rb-radio-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    transform: scale(0);
    transition: transform var(--rb-transition-fast);
}

.rb-radio-card.selected {
    border-color: var(--rb-green);
    border-width: 2px;
    background-color: rgba(125, 250, 115, 0.06);
    box-shadow: var(--rb-shadow-md);
}

.rb-radio-card.selected .rb-radio-indicator {
    border-color: var(--rb-green);
    background-color: var(--rb-green);
}

.rb-radio-card.selected .rb-radio-indicator::after {
    transform: scale(1);
}

.rb-radio-card:focus-within {
    outline: 3px solid rgba(0, 130, 60, 0.3);
    outline-offset: 2px;
}

.rb-radio-card-content {
    flex: 1;
    min-width: 0;
}

.rb-radio-card-title {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-small);
    font-weight: 600;
    color: var(--rb-text-primary);
    margin-bottom: var(--rb-space-1);
}

.rb-radio-card-desc {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-tertiary);
    line-height: 1.5;
}

/* Checkbox card (same visual pattern) */
.rb-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: var(--rb-space-4);
    padding: var(--rb-space-5);
    border: 1.5px solid var(--rb-border-light);
    border-radius: var(--rb-radius-md);
    background-color: var(--rb-warm-white);
    cursor: pointer;
    transition:
        border-color var(--rb-transition-fast),
        background-color var(--rb-transition-fast),
        box-shadow var(--rb-transition);
    user-select: none;
    position: relative;
}

.rb-checkbox-card:hover {
    border-color: var(--rb-taupe-200);
    box-shadow: var(--rb-shadow-sm);
}

.rb-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rb-checkbox-card .rb-checkbox-indicator {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--rb-taupe-200);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color var(--rb-transition-fast),
        background-color var(--rb-transition-fast);
    margin-top: 2px;
}

.rb-checkbox-card .rb-checkbox-indicator svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    stroke-width: 3px;
    fill: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--rb-transition-fast);
}

.rb-checkbox-card.selected {
    border-color: var(--rb-green);
    border-width: 2px;
    background-color: rgba(125, 250, 115, 0.06);
    box-shadow: var(--rb-shadow-md);
}

.rb-checkbox-card.selected .rb-checkbox-indicator {
    border-color: var(--rb-green);
    background-color: var(--rb-green);
}

.rb-checkbox-card.selected .rb-checkbox-indicator svg {
    opacity: 1;
    transform: scale(1);
}

.rb-checkbox-card:focus-within {
    outline: 3px solid rgba(0, 130, 60, 0.3);
    outline-offset: 2px;
}

/* =============================================================================
   10. WIZARD
   ============================================================================= */

.rb-wizard {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--rb-nav-height));
    padding-top: var(--rb-nav-height);
}

.rb-wizard-inner {
    display: flex;
    flex: 1;
    min-height: 0;
}

.rb-wizard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-right: var(--rb-sidebar-width);
    min-height: 0;
}

.rb-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    flex: 1;
}

.rb-step.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Progress bar */
.rb-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rb-space-5) var(--rb-space-5);
    gap: 0;
    background-color: var(--rb-warm-white);
    border-bottom: 1px solid var(--rb-border-light);
    position: sticky;
    top: var(--rb-nav-height);
    z-index: 100;
}

.rb-progress-step {
    display: flex;
    align-items: center;
    gap: var(--rb-space-2);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-tiny);
    font-weight: 500;
    color: var(--rb-taupe-200);
    white-space: nowrap;
    position: relative;
    transition: color var(--rb-transition);
}

.rb-progress-step + .rb-progress-step {
    margin-left: var(--rb-space-2);
}

.rb-progress-step + .rb-progress-step::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background-color: var(--rb-taupe-100);
    margin-right: var(--rb-space-2);
    transition: background-color var(--rb-transition);
    flex-shrink: 0;
}

.rb-progress-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rb-taupe-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--rb-text-caption);
    font-weight: 600;
    flex-shrink: 0;
    transition:
        border-color var(--rb-transition),
        background-color var(--rb-transition),
        color var(--rb-transition);
    color: var(--rb-taupe-200);
    background-color: transparent;
}

.rb-progress-step-label {
    transition: color var(--rb-transition);
}

/* Active step */
.rb-progress-step.active {
    color: var(--rb-green);
}

.rb-progress-step.active .rb-progress-step-circle {
    border-color: var(--rb-green);
    background-color: var(--rb-green);
    color: #ffffff;
}

/* Completed step */
.rb-progress-step.completed {
    color: var(--rb-green);
}

.rb-progress-step.completed .rb-progress-step-circle {
    border-color: var(--rb-green);
    background-color: var(--rb-green);
    color: #ffffff;
}

.rb-progress-step.completed + .rb-progress-step::before {
    background-color: var(--rb-green);
}

/* Checkmark inside completed circle */
.rb-progress-step.completed .rb-progress-step-circle::after {
    content: '';
    display: block;
    width: 8px;
    height: 14px;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    transform: rotate(45deg) translateY(-1px);
}

/* Step header area */
.rb-step-header {
    text-align: center;
    padding: var(--rb-space-7) var(--rb-space-5) var(--rb-space-5);
    max-width: var(--rb-max-width-narrow);
    margin: 0 auto;
    width: 100%;
}

.rb-step-title {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h2);
    font-weight: 700;
    color: var(--rb-text-primary);
    margin-bottom: var(--rb-space-3);
    line-height: 1.2;
}

.rb-step-subtitle {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-small);
    color: var(--rb-text-tertiary);
    line-height: 1.6;
}

/* Step content area */
.rb-step-content {
    max-width: var(--rb-max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--rb-space-5) var(--rb-space-7);
    width: 100%;
    flex: 1;
}

/* Wizard bottom navigation */
.rb-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rb-space-4) var(--rb-space-6);
    background-color: var(--rb-warm-white);
    border-top: 1px solid var(--rb-border-light);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.rb-wizard-nav-info {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-tertiary);
}

.rb-wizard-nav-buttons {
    display: flex;
    gap: var(--rb-space-3);
    align-items: center;
}

/* =============================================================================
   11. HERO / LANDING
   ============================================================================= */

.rb-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--rb-space-9) var(--rb-space-5);
    background-color: var(--rb-warm-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 130, 60, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.rb-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 250, 115, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.rb-hero-title {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-hero);
    font-weight: 700;
    color: var(--rb-text-primary);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--rb-space-5);
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.rb-hero-subtitle {
    font-family: var(--rb-font-body);
    font-size: 20px;
    color: var(--rb-text-tertiary);
    line-height: 1.7;
    margin-bottom: var(--rb-space-7);
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.rb-hero-cta {
    display: flex;
    gap: var(--rb-space-4);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Trust row */
.rb-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rb-space-7);
    padding: var(--rb-space-7) var(--rb-space-5);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.rb-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rb-space-2);
    text-align: center;
}

.rb-trust-item svg,
.rb-trust-item img {
    width: 40px;
    height: 40px;
    color: var(--rb-green);
}

.rb-trust-item svg {
    stroke: var(--rb-green);
    stroke-width: 3px;
    fill: none;
}

.rb-trust-item span {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    font-weight: 500;
    color: var(--rb-text-tertiary);
    line-height: 1.3;
}

/* =============================================================================
   12. PRICING TIERS
   ============================================================================= */

.rb-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rb-space-5);
    align-items: stretch;
}

.rb-tier-card {
    background-color: var(--rb-warm-white);
    border: 1.5px solid var(--rb-border-light);
    border-radius: var(--rb-radius-lg);
    padding: var(--rb-space-6);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition:
        border-color var(--rb-transition),
        box-shadow var(--rb-transition),
        transform var(--rb-transition);
    position: relative;
}

.rb-tier-card:hover {
    box-shadow: var(--rb-shadow-md);
    transform: translateY(-2px);
}

.rb-tier-card.featured {
    border-color: var(--rb-green);
    border-width: 2px;
    box-shadow: var(--rb-shadow-lg);
    transform: scale(1.03);
    z-index: 2;
}

.rb-tier-card.featured:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: var(--rb-shadow-xl);
}

.rb-tier-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--rb-green);
    color: #ffffff;
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-tiny);
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.rb-tier-header {
    margin-bottom: var(--rb-space-5);
    padding-bottom: var(--rb-space-5);
    border-bottom: 1px solid var(--rb-border-light);
}

.rb-tier-name {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h3);
    font-weight: 600;
    color: var(--rb-text-primary);
    margin-bottom: var(--rb-space-2);
}

.rb-tier-price {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h1);
    font-weight: 700;
    color: var(--rb-green);
    line-height: 1;
    margin-bottom: var(--rb-space-2);
}

.rb-tier-price .currency {
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 600;
    margin-right: 2px;
}

.rb-tier-price .cents {
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 600;
}

.rb-tier-timeline {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-body);
    color: var(--rb-text-tertiary);
    font-style: italic;
}

.rb-tier-features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-3);
    margin-bottom: var(--rb-space-6);
    flex: 1;
}

.rb-tier-features li {
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-secondary);
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.rb-tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2300823C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.rb-tier-cta {
    margin-top: auto;
}

/* =============================================================================
   13. ALERTS & BADGES
   ============================================================================= */

.rb-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--rb-space-3);
    padding: var(--rb-space-4) var(--rb-space-5);
    border-radius: var(--rb-radius-sm);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    line-height: 1.5;
    margin-bottom: var(--rb-space-4);
    border: 1px solid transparent;
}

.rb-alert:last-child {
    margin-bottom: 0;
}

.rb-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 3px;
    margin-top: 1px;
}

.rb-alert-warning {
    background-color: var(--rb-warning-bg);
    color: var(--rb-warning-text);
    border-color: var(--rb-warning-border);
}

.rb-alert-warning svg {
    stroke: var(--rb-warning-text);
}

.rb-alert-info {
    background-color: var(--rb-info-bg);
    color: var(--rb-info-text);
    border-color: var(--rb-info-border);
}

.rb-alert-info svg {
    stroke: var(--rb-info-text);
}

.rb-alert-success {
    background-color: var(--rb-success-bg);
    color: var(--rb-success-text);
    border-color: var(--rb-success-border);
}

.rb-alert-success svg {
    stroke: var(--rb-success-text);
}

/* Badges */
.rb-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rb-space-1);
    font-family: var(--rb-font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    line-height: 1;
    white-space: nowrap;
    background-color: var(--rb-taupe-100);
    color: var(--rb-text-secondary);
}

.rb-badge-estimated {
    background-color: var(--rb-yellow-accent);
    color: var(--rb-taupe-500);
}

.rb-badge-green {
    background-color: rgba(0, 130, 60, 0.12);
    color: var(--rb-green);
}

.rb-badge-new {
    background-color: var(--rb-green);
    color: #ffffff;
}

/* =============================================================================
   14. SIDEBAR SUMMARY
   ============================================================================= */

.rb-sidebar {
    position: fixed;
    top: var(--rb-nav-height);
    right: 0;
    bottom: 0;
    width: var(--rb-sidebar-width);
    background-color: var(--rb-warm-white);
    border-left: 1px solid var(--rb-border-light);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 90;
    box-shadow: -2px 0 12px rgba(15, 25, 10, 0.06);
    padding: var(--rb-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-4);
    transition: transform var(--rb-transition);
}

.rb-sidebar-section {
    border-bottom: 1px solid var(--rb-border-light);
    padding-bottom: var(--rb-space-4);
}

.rb-sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rb-sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: var(--rb-space-2) 0;
    user-select: none;
}

.rb-sidebar-section-header h4 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-caption);
    font-weight: 600;
    color: var(--rb-text-primary);
}

.rb-sidebar-section-header svg {
    width: 16px;
    height: 16px;
    stroke: var(--rb-text-tertiary);
    stroke-width: 3px;
    transition: transform var(--rb-transition-fast);
}

.rb-sidebar-section.collapsed .rb-sidebar-section-header svg {
    transform: rotate(-90deg);
}

.rb-sidebar-section.collapsed .rb-sidebar-section-body {
    display: none;
}

.rb-sidebar-section-body {
    padding-top: var(--rb-space-3);
}

.rb-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: var(--rb-space-5);
    right: var(--rb-space-5);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--rb-green);
    color: #ffffff;
    border: none;
    box-shadow: var(--rb-shadow-lg);
    cursor: pointer;
    z-index: 95;
    align-items: center;
    justify-content: center;
    transition: all var(--rb-transition-fast);
}

.rb-sidebar-toggle:hover {
    background-color: var(--rb-green-accent);
    box-shadow: var(--rb-shadow-xl);
    transform: scale(1.05);
}

.rb-sidebar-toggle:active {
    transform: scale(0.95);
}

.rb-sidebar-toggle svg {
    width: 24px;
    height: 24px;
    stroke-width: 3px;
}

/* Summary line items (reusable inside sidebar) */
.rb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--rb-space-2) 0;
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
}

.rb-summary-row-label {
    color: var(--rb-text-tertiary);
}

.rb-summary-row-value {
    color: var(--rb-text-primary);
    font-weight: 500;
}

.rb-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--rb-space-4) 0 var(--rb-space-2);
    border-top: 2px solid var(--rb-text-primary);
    font-family: var(--rb-font-heading);
}

.rb-summary-total-label {
    font-size: var(--rb-text-small);
    font-weight: 600;
    color: var(--rb-text-primary);
}

.rb-summary-total-value {
    font-size: var(--rb-text-h3);
    font-weight: 700;
    color: var(--rb-green);
}

/* =============================================================================
   15. MAP
   ============================================================================= */

.rb-map-container {
    width: 100%;
    border-radius: var(--rb-radius-md);
    overflow: hidden;
    box-shadow: var(--rb-shadow-md);
    position: relative;
    background-color: var(--rb-taupe-100);
    border: 1px solid var(--rb-border-light);
}

.rb-map-container canvas,
.rb-map-container .mapboxgl-map,
.rb-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.rb-map-overlay {
    position: absolute;
    top: var(--rb-space-3);
    left: var(--rb-space-3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-2);
}

.rb-map-controls {
    position: absolute;
    top: var(--rb-space-3);
    right: var(--rb-space-3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--rb-space-1);
}

/* =============================================================================
   16. MODAL
   ============================================================================= */

.rb-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 25, 10, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--rb-space-5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--rb-transition),
        visibility var(--rb-transition);
}

.rb-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rb-modal {
    background-color: var(--rb-warm-white);
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--rb-transition);
}

.rb-modal-overlay.active .rb-modal {
    transform: translateY(0) scale(1);
}

.rb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rb-space-5) var(--rb-space-6);
    border-bottom: 1px solid var(--rb-border-light);
    flex-shrink: 0;
}

.rb-modal-header h3 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h3);
    font-weight: 600;
    color: var(--rb-text-primary);
}

.rb-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rb-text-tertiary);
    border-radius: var(--rb-radius-sm);
    transition:
        background-color var(--rb-transition-fast),
        color var(--rb-transition-fast);
}

.rb-modal-close:hover {
    background-color: rgba(15, 25, 10, 0.06);
    color: var(--rb-text-primary);
}

.rb-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 3px;
}

.rb-modal-body {
    padding: var(--rb-space-6);
    overflow-y: auto;
    flex: 1;
}

.rb-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--rb-space-3);
    padding: var(--rb-space-4) var(--rb-space-6);
    border-top: 1px solid var(--rb-border-light);
    flex-shrink: 0;
}

/* =============================================================================
   17. CONFIRMATION SCREEN
   ============================================================================= */

.rb-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--rb-space-9) var(--rb-space-5);
    min-height: 60vh;
}

.rb-confirmation-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: var(--rb-success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--rb-space-6);
    animation: rbPulseGreen 2s ease-in-out infinite;
}

.rb-confirmation-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--rb-green);
    stroke-width: 3px;
    fill: none;
}

.rb-confirmation h2 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-h1);
    font-weight: 700;
    color: var(--rb-text-primary);
    margin-bottom: var(--rb-space-4);
}

.rb-confirmation p {
    font-family: var(--rb-font-body);
    font-size: var(--rb-text-body);
    color: var(--rb-text-tertiary);
    max-width: 480px;
    margin-bottom: var(--rb-space-6);
}

.rb-confirmation-actions {
    display: flex;
    gap: var(--rb-space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* =============================================================================
   18. DESIGN OUTPUT / DELIVERABLE PREVIEW
   ============================================================================= */

.rb-output-preview {
    background-color: #ffffff;
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow-lg);
    overflow: hidden;
    max-width: var(--rb-max-width);
    margin: 0 auto;
}

.rb-output-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rb-space-3) var(--rb-space-5);
    background-color: var(--rb-warm-white);
    border-bottom: 1px solid var(--rb-border-light);
}

.rb-output-toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--rb-space-3);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-secondary);
    font-weight: 500;
}

.rb-output-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--rb-space-2);
}

.rb-output-page {
    padding: var(--rb-space-7);
    min-height: 600px;
}

.rb-output-page + .rb-output-page {
    border-top: 2px dashed var(--rb-taupe-100);
}

/* =============================================================================
   19. ANIMATIONS
   ============================================================================= */

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

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

@keyframes rbPulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 130, 60, 0.2);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(0, 130, 60, 0);
    }
}

@keyframes rbSpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rb-fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.rb-slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.rb-fade-in.rb-animate-in,
.rb-slide-up.rb-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for lists */
.rb-animate-in:nth-child(1) { transition-delay: 0ms; }
.rb-animate-in:nth-child(2) { transition-delay: 80ms; }
.rb-animate-in:nth-child(3) { transition-delay: 160ms; }
.rb-animate-in:nth-child(4) { transition-delay: 240ms; }
.rb-animate-in:nth-child(5) { transition-delay: 320ms; }
.rb-animate-in:nth-child(6) { transition-delay: 400ms; }

/* =============================================================================
   20. LOADING / SPINNER
   ============================================================================= */

.rb-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rb-taupe-100);
    border-top-color: var(--rb-green);
    border-radius: 50%;
    animation: rbSpinnerRotate 0.8s linear infinite;
}

.rb-spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.rb-spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.rb-loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: inherit;
}

/* =============================================================================
   21. TOOLTIP
   ============================================================================= */

.rb-tooltip {
    position: relative;
    display: inline-flex;
}

.rb-tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: var(--rb-taupe-500);
    color: #ffffff;
    font-family: var(--rb-font-ui);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--rb-transition-fast),
        visibility var(--rb-transition-fast);
    z-index: 1000;
}

.rb-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--rb-taupe-500);
}

.rb-tooltip:hover .rb-tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   22. UTILITY CLASSES
   ============================================================================= */

/* Flex utilities */
.rb-flex { display: flex; }
.rb-flex-col { display: flex; flex-direction: column; }
.rb-flex-center { display: flex; align-items: center; justify-content: center; }
.rb-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rb-flex-wrap { flex-wrap: wrap; }
.rb-flex-1 { flex: 1; }
.rb-gap-1 { gap: var(--rb-space-1); }
.rb-gap-2 { gap: var(--rb-space-2); }
.rb-gap-3 { gap: var(--rb-space-3); }
.rb-gap-4 { gap: var(--rb-space-4); }
.rb-gap-5 { gap: var(--rb-space-5); }
.rb-gap-6 { gap: var(--rb-space-6); }

/* Spacing utilities */
.rb-mt-1 { margin-top: var(--rb-space-1); }
.rb-mt-2 { margin-top: var(--rb-space-2); }
.rb-mt-3 { margin-top: var(--rb-space-3); }
.rb-mt-4 { margin-top: var(--rb-space-4); }
.rb-mt-5 { margin-top: var(--rb-space-5); }
.rb-mt-6 { margin-top: var(--rb-space-6); }
.rb-mt-7 { margin-top: var(--rb-space-7); }
.rb-mt-8 { margin-top: var(--rb-space-8); }

.rb-mb-1 { margin-bottom: var(--rb-space-1); }
.rb-mb-2 { margin-bottom: var(--rb-space-2); }
.rb-mb-3 { margin-bottom: var(--rb-space-3); }
.rb-mb-4 { margin-bottom: var(--rb-space-4); }
.rb-mb-5 { margin-bottom: var(--rb-space-5); }
.rb-mb-6 { margin-bottom: var(--rb-space-6); }
.rb-mb-7 { margin-bottom: var(--rb-space-7); }
.rb-mb-8 { margin-bottom: var(--rb-space-8); }

.rb-pt-0 { padding-top: 0; }
.rb-pb-0 { padding-bottom: 0; }
.rb-p-4 { padding: var(--rb-space-4); }
.rb-p-5 { padding: var(--rb-space-5); }
.rb-p-6 { padding: var(--rb-space-6); }

/* Visibility */
.rb-hidden { display: none !important; }
.rb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Width */
.rb-w-full { width: 100%; }

/* =============================================================================
   23. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================================= */

@media (max-width: 1024px) {
    :root {
        --rb-text-hero: 40px;
        --rb-text-h1: 30px;
        --rb-text-h2: 24px;
    }

    .rb-sidebar {
        width: 280px;
    }

    .rb-tier-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .rb-tier-card.featured {
        transform: none;
        order: -1;
    }

    .rb-tier-card.featured:hover {
        transform: translateY(-2px);
    }

    .rb-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--rb-space-6);
    }

    .rb-progress-step-label {
        display: none;
    }

    .rb-progress-step + .rb-progress-step::before {
        width: 20px;
    }
}

/* =============================================================================
   24. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================================= */

@media (max-width: 768px) {
    :root {
        --rb-text-hero: 32px;
        --rb-text-h1: 26px;
        --rb-text-h2: 22px;
        --rb-text-h3: 20px;
        --rb-text-body: 16px;
        --rb-nav-height: 60px;
    }

    body {
        font-size: var(--rb-text-body);
    }

    .rb-container,
    .rb-container-narrow,
    .rb-container-wide {
        padding-left: var(--rb-space-4);
        padding-right: var(--rb-space-4);
    }

    .rb-section {
        padding-top: var(--rb-space-7);
        padding-bottom: var(--rb-space-7);
    }

    /* Navigation — hamburger */
    .rb-nav {
        padding: 0 var(--rb-space-4);
    }

    .rb-nav-mobile-toggle {
        display: flex;
    }

    .rb-nav-links {
        position: fixed;
        top: var(--rb-nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--rb-warm-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--rb-space-6);
        gap: var(--rb-space-4);
        transform: translateX(100%);
        transition: transform var(--rb-transition);
        z-index: 999;
        border-top: 1px solid var(--rb-border-light);
    }

    .rb-nav-links.open {
        transform: translateX(0);
    }

    .rb-nav-links a {
        font-size: var(--rb-text-body);
        padding: var(--rb-space-3) 0;
        width: 100%;
    }

    /* Hero */
    .rb-hero {
        padding: var(--rb-space-7) var(--rb-space-4);
        min-height: auto;
        padding-top: calc(var(--rb-nav-height) + var(--rb-space-7));
    }

    .rb-hero-title {
        font-size: var(--rb-text-hero);
    }

    .rb-hero-subtitle {
        font-size: var(--rb-text-body);
    }

    .rb-hero-cta {
flex-direction: column;
        width: 100%;
    }

    .rb-hero-cta .rb-btn {
        width: 100%;
    }

    .rb-trust-row {
        gap: var(--rb-space-5);
    }

    .rb-trust-item {
        flex: 1;
        min-width: 120px;
    }

    /* Wizard */
    .rb-wizard {
        min-height: 100vh;
    }

    .rb-step.active {
        flex-direction: column;
    }

    .rb-step-header {
        padding: var(--rb-space-5) var(--rb-space-4) var(--rb-space-4);
    }

    .rb-step-content {
        padding: 0 var(--rb-space-4) var(--rb-space-6);
    }

    .rb-wizard-nav {
        padding: var(--rb-space-3) var(--rb-space-4);
    }

    .rb-wizard-nav-info {
        display: none;
    }

    .rb-wizard-nav-buttons {
        width: 100%;
        justify-content: space-between;
    }

    /* Progress — compact */
    .rb-progress {
        padding: var(--rb-space-3) var(--rb-space-4);
    }

    .rb-progress-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Sidebar → bottom sheet */
    .rb-sidebar {
        position: fixed;
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-left: none;
        border-top: 1px solid var(--rb-border-light);
        border-radius: var(--rb-radius-lg) var(--rb-radius-lg) 0 0;
        box-shadow: 0 -4px 24px rgba(15, 25, 10, 0.16);
        transform: translateY(100%);
        z-index: 200;
    }

    .rb-sidebar.open {
        transform: translateY(0);
    }

    .rb-sidebar-toggle {
        display: flex;
    }

    /* Pricing tiers stack */
    .rb-tier-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Cards: reduce padding */
    .rb-card,
    .rb-card-elevated,
    .rb-card-selected {
        padding: var(--rb-space-4);
    }

    /* Radio/checkbox cards: tighter */
    .rb-radio-card,
    .rb-checkbox-card {
        padding: var(--rb-space-4);
        gap: var(--rb-space-3);
    }

    /* Modal: full width on mobile */
    .rb-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .rb-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--rb-radius-lg) var(--rb-radius-lg) 0 0;
    }

    /* Footer */
    .rb-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--rb-space-5);
    }

    .rb-footer-bottom {
        flex-direction: column;
        gap: var(--rb-space-3);
        text-align: center;
    }

    /* Buttons: full width on mobile when in CTA contexts */
    .rb-btn-lg {
        width: 100%;
        padding: 16px 32px;
    }
}

/* =============================================================================
   25. PRINT / PDF EXPORT
   ============================================================================= */

@media print {
    *,
    *::before,
    *::after {
        background-color: transparent !important;
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* Hide interactive elements */
    .rb-nav,
    .rb-footer,
    .rb-sidebar-toggle,
    .rb-wizard-nav,
    .rb-btn,
    .rb-modal-overlay,
    .rb-progress,
    .rb-nav-mobile-toggle {
        display: none !important;
    }

    /* Show all content */
    .rb-step {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .rb-sidebar {
        position: static;
        width: 100%;
        border: 1px solid #cccccc;
        box-shadow: none;
        transform: none;
        page-break-inside: avoid;
    }

    /* Page breaks */
    .rb-section {
        page-break-inside: avoid;
    }

    .rb-output-page {
        page-break-after: always;
    }

    .rb-output-page:last-child {
        page-break-after: auto;
    }

    /* Cards print cleanly */
    .rb-card,
    .rb-card-elevated,
    .rb-card-selected {
        border: 1px solid #cccccc !important;
        page-break-inside: avoid;
    }

    /* Tier cards */
    .rb-tier-grid {
        display: block;
    }

    .rb-tier-card {
        border: 1px solid #cccccc !important;
        page-break-inside: avoid;
        margin-bottom: 16pt;
    }

    .rb-tier-card.featured {
        transform: none;
    }

    /* Map container */
    .rb-map-container {
        border: 1px solid #cccccc;
        border-radius: 0;
        page-break-inside: avoid;
    }

    /* Links: show URL */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #666666 !important;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    /* Confirmation icon */
    .rb-confirmation-icon {
        border: 2px solid #00823C !important;
    }

    /* Ensure proper margins */
    @page {
        margin: 2cm;
    }

    /* Header for printed pages */
    .rb-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 24pt;
        padding-bottom: 12pt;
        border-bottom: 2px solid #00823C;
    }

    .rb-print-header img {
        height: 32px;
        margin: 0 auto 8pt;
    }
}

/* =============================================================================
   26. ACCESSIBLE FOCUS STYLES
   ============================================================================= */

/* Enhanced focus ring for all interactive elements */
.rb-btn:focus-visible,
.rb-input:focus-visible,
.rb-select:focus-visible,
.rb-textarea:focus-visible,
.rb-radio-card:focus-visible,
.rb-checkbox-card:focus-visible,
.rb-card-interactive:focus-visible,
.rb-tier-card:focus-visible,
.rb-sidebar-section-header:focus-visible,
.rb-modal-close:focus-visible,
.rb-nav-mobile-toggle:focus-visible,
.rb-sidebar-toggle:focus-visible {
    outline: 3px solid rgba(0, 130, 60, 0.4);
    outline-offset: 2px;
}

/* Skip to content link (accessibility) */
.rb-skip-link {
    position: absolute;
    top: -100%;
    left: var(--rb-space-4);
    background-color: var(--rb-green);
    color: #ffffff;
    padding: var(--rb-space-3) var(--rb-space-5);
    border-radius: var(--rb-radius-sm);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--rb-transition-fast);
    text-decoration: none;
}

.rb-skip-link:focus {
    top: var(--rb-space-3);
}

/* High contrast mode support */
@media (forced-colors: active) {
    .rb-btn-primary {
        border: 2px solid ButtonText;
    }

    .rb-card-selected {
        border: 3px solid Highlight;
    }

    .rb-radio-card.selected .rb-radio-indicator {
        forced-color-adjust: none;
    }

    .rb-progress-step.active .rb-progress-step-circle,
    .rb-progress-step.completed .rb-progress-step-circle {
        forced-color-adjust: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .rb-fade-in,
    .rb-slide-up {
        opacity: 1;
        transform: none;
    }

    .rb-step.active {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =============================================================================
   27. DARK SECTION VARIANT
   ============================================================================= */

.rb-section-dark {
    background-color: var(--rb-green-dark);
    color: #ffffff;
}

.rb-section-dark h1,
.rb-section-dark h2,
.rb-section-dark h3,
.rb-section-dark .rb-heading-1,
.rb-section-dark .rb-heading-2,
.rb-section-dark .rb-heading-3,
.rb-section-dark .rb-step-title {
    color: #ffffff;
}

.rb-section-dark p,
.rb-section-dark .rb-body-text,
.rb-section-dark .rb-step-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.rb-section-dark .rb-caption {
    color: rgba(255, 255, 255, 0.55);
}

.rb-section-dark .rb-btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.rb-section-dark .rb-btn-secondary:hover {
    background-color: #ffffff;
    color: var(--rb-green-dark);
    border-color: #ffffff;
}

.rb-section-dark .rb-divider {
    background-color: rgba(255, 255, 255, 0.15);
}

/* =============================================================================
   28. CUSTOMER INTENT CAPTURE (purchase intent form)
   ============================================================================= */

.rb-intent-card {
    background-color: rgba(125, 250, 115, 0.06);
    border: 1px solid rgba(0, 130, 60, 0.2);
    border-radius: var(--rb-radius-md);
    padding: var(--rb-space-5);
}

.rb-intent-card-header {
    display: flex;
    align-items: center;
    gap: var(--rb-space-3);
    margin-bottom: var(--rb-space-4);
}

.rb-intent-card-header svg {
    width: 24px;
    height: 24px;
    stroke: var(--rb-green);
    stroke-width: 3px;
    flex-shrink: 0;
}

.rb-intent-card-header h4 {
    font-family: var(--rb-font-heading);
    font-size: var(--rb-text-small);
    font-weight: 600;
    color: var(--rb-text-primary);
}

.rb-intent-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--rb-space-3);
}

.rb-intent-option {
    display: flex;
    align-items: center;
    gap: var(--rb-space-3);
    padding: var(--rb-space-3) var(--rb-space-4);
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-sm);
    background-color: var(--rb-warm-white);
    cursor: pointer;
    transition:
        border-color var(--rb-transition-fast),
        background-color var(--rb-transition-fast);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-secondary);
}

.rb-intent-option:hover {
    border-color: var(--rb-green);
    background-color: rgba(125, 250, 115, 0.04);
}

.rb-intent-option.selected {
    border-color: var(--rb-green);
    background-color: rgba(125, 250, 115, 0.08);
    color: var(--rb-green);
    font-weight: 500;
}

/* =============================================================================
   29. TABLE STYLES (for parts lists, specs)
   ============================================================================= */

.rb-table-wrap {
    overflow-x: auto;
    border-radius: var(--rb-radius-sm);
    border: 1px solid var(--rb-border-light);
}

.rb-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
}

.rb-table thead {
    background-color: rgba(0, 130, 60, 0.06);
}

.rb-table th {
    text-align: left;
    font-weight: 600;
    color: var(--rb-text-primary);
    padding: var(--rb-space-3) var(--rb-space-4);
    border-bottom: 2px solid var(--rb-border-light);
    white-space: nowrap;
}

.rb-table td {
    padding: var(--rb-space-3) var(--rb-space-4);
    color: var(--rb-text-secondary);
    border-bottom: 1px solid var(--rb-border-light);
    vertical-align: middle;
}

.rb-table tbody tr:last-child td {
    border-bottom: none;
}

.rb-table tbody tr:hover {
    background-color: rgba(0, 130, 60, 0.03);
}

.rb-table tfoot {
    border-top: 2px solid var(--rb-border-light);
}

.rb-table tfoot td {
    font-weight: 600;
    color: var(--rb-text-primary);
    border-bottom: none;
}

/* =============================================================================
   30. ZONE LEGEND (for design output maps)
   ============================================================================= */

.rb-zone-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rb-space-4);
    padding: var(--rb-space-4);
    background-color: var(--rb-warm-white);
    border: 1px solid var(--rb-border-light);
    border-radius: var(--rb-radius-sm);
}

.rb-zone-legend-item {
    display: flex;
    align-items: center;
    gap: var(--rb-space-2);
    font-family: var(--rb-font-ui);
    font-size: var(--rb-text-caption);
    color: var(--rb-text-secondary);
}

.rb-zone-legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(15, 25, 10, 0.12);
    flex-shrink: 0;
}

/* =============================================================================
   END OF DESIGN SYSTEM
   ============================================================================= */
