/* Marketing score tool - shared base styles. Per-tool palette via CSS custom properties on .ms-tool. */
.ms-tool { --ms-accent: #1D9E75; --ms-accent-dark: #04342C; --ms-selected: #E1F5EE; }

/* Hero */
.ms-hero { padding: 48px 0 24px; text-align: center; }
.ms-hero .breadcrumb { justify-content: center; display: flex; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.ms-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; color: var(--navy); line-height: 1.18; }
.ms-hero .ms-lede { font-size: 17px; color: var(--text-muted); max-width: 760px; margin: 0 auto; line-height: 1.55; }
.ms-hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.04); color: var(--ms-accent); font-size: 12px; font-weight: 600; margin-bottom: 18px; letter-spacing: .3px; text-transform: uppercase; }
.ms-hero-pill::before { content: ''; width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

/* App container */
#ms-app { background: #fff; border: 1px solid #ece9f5; border-radius: 20px; padding: 32px; box-shadow: 0 1px 2px rgba(20,16,60,.04), 0 16px 48px -16px rgba(20,16,60,.10); margin-top: 16px; }
@media (max-width: 640px) { #ms-app { padding: 22px; border-radius: 16px; } }

@keyframes msFadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ms-step-card { animation: msFadeSlide .35s ease; }

/* Progress */
.ms-progress { margin-bottom: 22px; }
.ms-progress-text { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.ms-progress-bar { height: 6px; background: #f1eff7; border-radius: 999px; overflow: hidden; }
.ms-progress-fill { height: 100%; background: linear-gradient(90deg, var(--ms-accent-dark), var(--ms-accent)); transition: width .35s ease; }

/* Step header */
.ms-step-eyebrow { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ms-selected); color: var(--ms-accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 12px; }
.ms-step-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--navy); margin: 0 0 8px; line-height: 1.3; letter-spacing: -.01em; }
.ms-step-sub { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 22px; }

/* Vertical picker grid */
.ms-vertical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .ms-vertical-grid { grid-template-columns: 1fr; } }
.ms-vertical-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1.5px solid #ece9f5; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: all .15s ease; }
.ms-vertical-card:hover { border-color: var(--ms-accent); transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.15); }
.ms-vertical-card-label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.ms-vertical-card-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdc8df; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 11px; flex-shrink: 0; transition: all .15s; }
.ms-vertical-card.ms-selected { border-color: var(--ms-accent); background: var(--ms-selected); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.ms-vertical-card.ms-selected .ms-vertical-card-tick { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }

/* Option cards (1-question-at-a-time) */
.ms-options { display: grid; gap: 10px; }
.ms-option-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid #ece9f5; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: all .15s ease; width: 100%; }
.ms-option-card:hover { border-color: var(--ms-accent); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.18); }
.ms-option-icon { width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ms-tone-green .ms-option-icon { background: rgba(16,185,129,.12); color: #059669; }
.ms-tone-teal .ms-option-icon { background: rgba(13,148,136,.12); color: #0d9488; }
.ms-tone-amber .ms-option-icon { background: rgba(250,204,21,.18); color: #b45309; }
.ms-tone-orange .ms-option-icon { background: rgba(245,158,11,.15); color: #d97706; }
.ms-tone-grey .ms-option-icon { background: #f1eff7; color: #69727d; }
.ms-option-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ms-option-label { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ms-option-desc { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.ms-option-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cdc8df; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; flex-shrink: 0; transition: all .15s; }
.ms-option-card.ms-selected { border-color: var(--ms-accent); background: var(--ms-selected); }
.ms-option-card.ms-selected .ms-option-tick { background: var(--ms-accent); border-color: var(--ms-accent); color: #fff; }
@media (max-width: 480px) { .ms-option-card { padding: 14px; gap: 12px; } .ms-option-icon { width: 38px; height: 38px; font-size: 16px; } .ms-option-label { font-size: 14.5px; } .ms-option-desc { font-size: 12.5px; } }

/* Step nav */
.ms-step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed #ece9f5; }
.ms-nav-btn { min-width: 130px; }
.ms-nav-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) { .ms-nav-btn { min-width: 110px; padding-left: 14px; padding-right: 14px; } }

/* Results */
.ms-score-card { position: relative; padding: 36px 28px; border-radius: 18px; color: #fff; text-align: center; background: var(--ms-gradient, linear-gradient(135deg, #04342C 0%, #1D9E75 100%)); box-shadow: 0 18px 44px -14px rgba(0,0,0,.25); margin-bottom: 28px; overflow: hidden; }
.ms-score-tier { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; opacity: .9; margin-bottom: 10px; }
.ms-score-value { font-size: clamp(48px, 8vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ms-score-out { font-size: .35em; opacity: .75; font-weight: 600; margin-left: 4px; }
.ms-score-summary { font-size: 15px; line-height: 1.55; max-width: 560px; margin: 14px auto 0; opacity: .95; }
.ms-score-vertical { font-size: 12.5px; opacity: .75; margin-top: 12px; }

.ms-section-h { font-size: 22px; font-weight: 700; color: var(--navy); margin: 32px 0 6px; letter-spacing: -.01em; }
.ms-section-sub { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }

.ms-priorities { display: grid; gap: 14px; }
.ms-priority-card { position: relative; border: 1.5px solid #ece9f5; border-radius: 14px; padding: 22px 22px 18px 64px; background: #fff; }
.ms-priority-card[data-rank="1"] { border-color: var(--ms-accent); background: linear-gradient(180deg, #fff, var(--ms-selected) 300%); }
.ms-priority-rank { position: absolute; top: 18px; left: 18px; width: 32px; height: 32px; border-radius: 8px; background: var(--ms-accent); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ms-priority-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.ms-priority-body { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 0 0 8px; }
.ms-priority-body:last-child { margin-bottom: 0; }
.ms-priority-body a { color: var(--ms-accent); font-weight: 600; }

.ms-breakdown { display: grid; gap: 10px; }
.ms-bar-row { padding: 10px 14px; border: 1px solid #ece9f5; border-radius: 10px; background: #fff; }
.ms-bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ms-bar-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.ms-bar-weight { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }
.ms-bar-track { height: 8px; background: #f1eff7; border-radius: 999px; overflow: hidden; }
.ms-bar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }

.ms-cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.ms-cta-row .btn, .ms-cta-row .ms-redo { flex: 1; min-width: 200px; }

/* Below-fold content */
.ms-below { margin-top: 40px; }
.ms-below h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; letter-spacing: -.01em; }
.ms-below p { font-size: 16px; color: var(--text); line-height: 1.65; margin: 0 0 14px; }
.ms-below ul { padding-left: 22px; line-height: 1.7; color: var(--text); }
.ms-below a:not(.btn) { color: var(--ms-accent); font-weight: 600; }

/* Numbered steps + mistakes */
.ms-steps, .ms-mistakes { padding-left: 0; counter-reset: msnum; list-style: none; margin: 16px 0 8px; }
.ms-steps li, .ms-mistakes li { position: relative; padding: 14px 16px 14px 56px; margin: 0 0 10px; border: 1.5px solid #ece9f5; border-radius: 12px; background: #fff; counter-increment: msnum; font-size: 15px; line-height: 1.55; color: var(--text); }
.ms-steps li::before, .ms-mistakes li::before { content: counter(msnum); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 8px; background: var(--ms-accent); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ms-steps li strong, .ms-mistakes li strong { color: var(--navy); }

/* Phased plan grid */
.ms-phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; }
@media (max-width: 820px) { .ms-phase-grid { grid-template-columns: 1fr; } }
.ms-phase { padding: 18px 18px 14px; border: 1.5px solid #ece9f5; border-radius: 14px; background: linear-gradient(180deg, #fff, #fafbfc); }
.ms-phase-h { font-size: 14px; font-weight: 800; color: var(--ms-accent-dark); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #ece9f5; }
.ms-phase ul { padding-left: 18px; margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.ms-phase ul li { margin-bottom: 6px; }

/* Benchmark table */
.ms-bench { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 8px; border: 1.5px solid #ece9f5; border-radius: 12px; overflow: hidden; }
.ms-bench th, .ms-bench td { text-align: left; padding: 12px 16px; font-size: 14.5px; }
.ms-bench thead th { background: #faf9ff; font-weight: 700; color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.ms-bench tbody tr:nth-child(even) { background: #fafafd; }
.ms-bench tbody td { border-top: 1px solid #f0eef8; }
.ms-bench tbody td:nth-child(2) { color: var(--text-muted); }
.ms-bench tbody td:nth-child(3) { color: var(--ms-accent-dark); font-weight: 600; }

details.ms-faq { border: 1.5px solid #ece9f5; border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
details.ms-faq[open] { border-color: var(--ms-accent); }
details.ms-faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
details.ms-faq summary::-webkit-details-marker { display: none; }
details.ms-faq summary::after { content: '+'; font-size: 22px; color: var(--ms-accent); font-weight: 300; }
details.ms-faq[open] summary::after { content: '\2212'; }
details.ms-faq p { margin-top: 10px; font-size: 14.5px; color: var(--text); line-height: 1.6; }

.ms-cross { text-align: center; font-size: 13.5px; color: var(--text-muted); margin: 16px 0 0; }
.ms-cross a { color: var(--ms-accent); text-decoration: underline; }

.ms-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.ms-related a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid #ece9f5; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; background: #fff; transition: all .2s; }
.ms-related a i { color: var(--ms-accent); font-size: 16px; }
.ms-related a:hover { border-color: var(--ms-accent); transform: translateY(-2px); }
@media (max-width: 720px) { .ms-related { grid-template-columns: 1fr; } }

/* Whautomate value section */
.ms-value { margin-top: 36px; padding: 28px; border-radius: 16px; background: linear-gradient(135deg, #f8f7fc, #fff); border: 1px solid #ece9f5; }
.ms-value h2 { margin-top: 0; }
.ms-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 720px) { .ms-value-grid { grid-template-columns: 1fr; } }
.ms-value-card { padding: 18px; background: #fff; border: 1px solid #ece9f5; border-radius: 12px; }
.ms-value-card i { color: var(--ms-accent); font-size: 20px; margin-bottom: 10px; }
.ms-value-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.ms-value-card h3 a { color: var(--navy); }
.ms-value-card p { font-size: 13.5px; color: var(--text); line-height: 1.55; margin: 0; }
.ms-value-card a:not(.btn) { color: var(--ms-accent); }
