/* Marketing plan results page. Mockup C: Figma 5590:388 (1440) and 5592:634 (375); score states 5594:879.
   Colors and radii are DESIGN.md tokens. Green appears only in the green score band. */

.in-motion-plan {
	--imp-night: #07090d;
	--imp-ink: #0e1116;
	--imp-ink-2: #1a1f27;
	--imp-muted: #5b6472;
	--imp-muted-dark: #c3cad6;
	--imp-line: #e3e8ee;
	--imp-pale: #eef1f6;
	--imp-paper: #f5f7fa;
	--imp-primary: #1a5fd6;
	--imp-primary-pressed: #10449c;
	--imp-primary-soft: #e6eefc;
	--imp-sky: #7bd5f5;
	--imp-peri: #787ff6;
	--imp-peri-deep: #4b52d9;
	--imp-ember: #ff7a45;
	--imp-ember-deep: #8b482e;
	--imp-ember-soft: #ffede4;
	--imp-violet-deep: #7c3aed;
	--imp-lavender-soft: #f3eefe;
	--imp-red: #e35d55;
	--imp-amber: #f4bb1b;
	--imp-green: #34d399;
	--imp-panel: var(--imm-radius-panel, clamp(1.5rem, 0.9718rem + 2.2535vw, 3rem));
	--imp-band: var(--imp-red);
	--imp-band-rgb: 227, 93, 85;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--imp-ink);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.in-motion-plan.imp-band-amber { --imp-band: var(--imp-amber); --imp-band-rgb: 244, 187, 27; }
.in-motion-plan.imp-band-green { --imp-band: var(--imp-green); --imp-band-rgb: 52, 211, 153; }

.in-motion-plan *,
.in-motion-plan *::before,
.in-motion-plan *::after { box-sizing: border-box; }
.in-motion-plan h1,
.in-motion-plan h2,
.in-motion-plan h3,
.in-motion-plan p,
.in-motion-plan ul,
.in-motion-plan dl,
.in-motion-plan dd { margin: 0; padding: 0; }
.in-motion-plan ul { list-style: none; }

/* Sections: rounded panels that slide over the one above (DESIGN.md 4.7). */
.imp-section { position: relative; padding: 96px 0; }
.imp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
/* Top padding clears the site header, which sits over the page (same 160 / 96 as the site's heroes). */
.imp-night { background: var(--imp-night); color: #fff; padding: 160px 0 calc(96px + var(--imp-panel)); }
.imp-pale { background: var(--imp-pale); margin-top: calc(-1 * var(--imp-panel)); border-radius: var(--imp-panel) var(--imp-panel) 0 0; z-index: 2; }
.imp-white { background: #fff; margin-top: calc(-1 * var(--imp-panel)); padding-top: calc(96px + var(--imp-panel)); z-index: 0; }
/* Seam cap: the section above a pure white one rounds its bottom into it. */
.imp-seam-cap { border-radius: var(--imp-panel); z-index: 1; padding-bottom: 96px; }
.imp-closing { z-index: 2; }
.imp-invalid .imp-night { padding-bottom: 120px; }

/* Type */
.imp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--imp-peri-deep); }
.imp-night .imp-eyebrow { color: var(--imp-peri); }
.in-motion-plan .imp-h1 { font-size: clamp(2.125rem, 1.6408rem + 2.0657vw, 3.5rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.imp-accent { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.1em; line-height: .95; letter-spacing: -.01em; color: var(--imp-sky); }
.in-motion-plan .imp-h2 { font-size: clamp(1.75rem, 1.39rem + 1.53vw, 2.625rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--imp-ink); margin-top: 12px; }
.in-motion-plan .imp-h3 { font-size: clamp(1.375rem, 1.22rem + .66vw, 1.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--imp-ink); }
.in-motion-plan .imp-h-card { font-size: 18px; line-height: 1.3; font-weight: 600; color: inherit; }
.imp-lead { font-size: 18px; line-height: 1.5; color: var(--imp-muted-dark); max-width: 624px; }
.imp-body { font-size: 15px; line-height: 1.55; color: var(--imp-muted); }
.imp-small { font-size: 13px; line-height: 1.45; color: var(--imp-muted); }
.imp-night .imp-small { color: var(--imp-muted-dark); }

/* Hero */
.imp-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: start; }
.imp-copy { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.in-motion-plan .imp-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: var(--imp-ink); font-size: 14px; line-height: 1.45; color: #fff; overflow-wrap: anywhere; }
.imp-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--imp-sky); }
.in-motion-plan .imp-button { align-self: flex-start; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: #fff; color: var(--imp-ink); font: 600 16px/1.2 Inter, system-ui, sans-serif; cursor: pointer; transition: background-color .2s; }
.in-motion-plan .imp-button:hover { background: var(--imp-paper); }
.in-motion-plan .imp-button:focus-visible { outline: 2px solid var(--imp-sky); outline-offset: 2px; }
.in-motion-plan .imp-button[hidden] { display: none; }

/* Dark chart card (DESIGN.md 5.6: edge and top highlight, no shadow) */
.imp-card-dark { padding: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: var(--imp-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.imp-score { display: flex; gap: 27px; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }

/* Score ring */
.imp-ring { position: relative; flex: none; width: 150px; height: 150px; }
.imp-ring-glow { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--imp-band-rgb), .35) 0, rgba(var(--imp-band-rgb), .18) 38%, rgba(var(--imp-band-rgb), 0) 68%); }
.imp-ring-svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.imp-ring-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 11; }
.imp-ring-arc { fill: none; stroke: var(--imp-band); stroke-width: 11; }
.imp-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.imp-ring-num { font-size: 54px; line-height: 1.1; font-weight: 700; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.imp-ring-of { font-size: 11px; color: var(--imp-muted-dark); }
.imp-verdict { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.imp-verdict-label { font-size: 14px; color: var(--imp-muted-dark); }
.imp-verdict-text { font-size: 20px; line-height: 1.3; font-weight: 600; color: #fff; }

/* Chips */
.imp-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.imp-chip-band { background: rgba(var(--imp-band-rgb), .16); color: var(--imp-band); }

/* Bars */
.imp-stand-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.imp-bars { display: flex; flex-direction: column; gap: 18px; }
.imp-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 8px; column-gap: 12px; }
.imp-bar-label { font-size: 14px; line-height: 1.3; color: var(--imp-muted-dark); }
.imp-bar-right { display: inline-flex; align-items: center; gap: 10px; }
.imp-bar-num { min-width: 10px; font-size: 14px; font-weight: 600; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.imp-bar { grid-column: 1 / -1; display: block; overflow: visible; }
.imp-bar-track { fill: rgba(255, 255, 255, .08); }
.imp-bar-fill { transform-box: fill-box; transform-origin: left center; }
.imp-tone-fix .imp-chip { background: #3a1d12; color: #ffb08f; }
.imp-tone-fix .imp-bar-fill { fill: var(--imp-ember); }
.imp-tone-work .imp-chip { background: #3a2f0c; color: #f8d46a; }
.imp-tone-work .imp-bar-fill { fill: var(--imp-amber); }
.imp-tone-strong .imp-chip { background: rgba(123, 213, 245, .14); color: var(--imp-sky); }
.imp-tone-strong .imp-bar-fill { fill: var(--imp-sky); }
.imp-tone-later .imp-chip { background: #1d1f45; color: #b3b7fb; }
.imp-tone-later .imp-bar-fill { fill: var(--imp-peri); }

/* Light cards */
.imp-card { padding: 32px; border: 1px solid var(--imp-line); border-radius: 20px; background: #fff; }

/* Budget */
.imp-budget { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.imp-budget-copy { display: flex; flex-direction: column; gap: 16px; }
.imp-budget .imp-bar-label { font-size: 15px; font-weight: 500; color: var(--imp-ink); }
.imp-budget .imp-bar-track { fill: var(--imp-pale); }
.imp-channel-paid_search .imp-bar-fill { fill: var(--imp-primary); }
.imp-channel-seo .imp-bar-fill { fill: #22a3a8; }
.imp-channel-ai_search .imp-bar-fill { fill: var(--imp-peri); }
.imp-channel-organic_social .imp-bar-fill { fill: #e39a2d; }
.imp-channel-paid_social .imp-bar-fill { fill: var(--imp-violet-deep); }
.imp-budget .imp-chip-not_yet .imp-bar-fill { fill: #9aa3b2; }
.imp-chip-start .imp-chip { background: var(--imp-primary); color: #fff; }
.imp-chip-next .imp-chip { background: var(--imp-primary-soft); color: var(--imp-primary-pressed); }
.imp-chip-later .imp-chip { background: var(--imp-paper); color: #4a5874; }
.imp-chip-not_yet .imp-chip { background: var(--imp-paper); color: var(--imp-muted); }

/* Checklist */
.imp-groups { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.imp-group { padding: 28px; }
.in-motion-plan .imp-group-head { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--imp-ink); }
.imp-num { display: inline-flex; padding: 6px 12px; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1.2; }
.in-motion-plan .imp-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 22px; }
.imp-item { display: flex; flex-direction: column; gap: 6px; padding-left: 32px; }
.in-motion-plan .imp-item-title { position: relative; display: block; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--imp-ink); cursor: pointer; }
.in-motion-plan .imp-box { position: absolute; left: -32px; top: 0; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--imp-box, var(--imp-primary)); border-radius: 5px; background: #fff; cursor: pointer; }
.in-motion-plan .imp-box:checked { background: var(--imp-box, var(--imp-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.in-motion-plan .imp-box:focus-visible { outline: 2px solid var(--imp-primary); outline-offset: 2px; }
.imp-item:has(.imp-box:checked) .imp-item-title span { text-decoration: line-through; color: var(--imp-muted); }
.imp-item-text { font-size: 14px; line-height: 1.5; color: var(--imp-muted); }
.imp-item-label { font-weight: 600; color: var(--imp-ink); font-size: 14px; }
.imp-missing { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--imp-muted); }
.in-motion-plan .imp-missing li { position: relative; padding-left: 14px; }
.imp-missing li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.imp-group-fix { --imp-box: var(--imp-ember); }
.imp-group-fix .imp-num { background: var(--imp-ember-soft); color: var(--imp-ember-deep); }
.imp-group-then { --imp-box: var(--imp-primary); }
.imp-group-then .imp-num { background: var(--imp-primary-soft); color: var(--imp-primary-pressed); }
.imp-group-later { --imp-box: var(--imp-violet-deep); }
.imp-group-later .imp-num { background: var(--imp-lavender-soft); color: var(--imp-violet-deep); }

/* Notes and answers */
.imp-stack { display: flex; flex-direction: column; gap: 24px; }
.imp-notes { display: flex; flex-direction: column; gap: 20px; }
.imp-note .imp-body { max-width: 960px; }
.imp-note { display: flex; flex-direction: column; gap: 6px; color: var(--imp-ink); }
.in-motion-plan .imp-answer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 8px; }
.imp-answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--imp-line); font-size: 14px; line-height: 1.45; }

.imp-answer dt { color: var(--imp-muted); }
.imp-answer dd { font-weight: 600; color: var(--imp-ink); text-align: right; overflow-wrap: anywhere; }

/* Motion. Only with .imp-anim, which the page adds when reduced motion is off; results.js runs it. */
.imp-anim .imp-ring-num { opacity: 0; }
.imp-anim .imp-ring-arc { stroke-dashoffset: 100; }
.imp-anim .imp-ring-glow { opacity: 0; }
.imp-anim .imp-bar-fill { transform: scaleX(0); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.imp-anim .imp-bar-row.is-in .imp-bar-fill { transform: none; }
.imp-anim .imp-group { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.22, 1, .36, 1); }
.imp-anim .imp-group.is-in { opacity: 1; transform: none; }
.imp-anim .imp-ring.is-landed .imp-ring-glow { opacity: 1; animation: imp-pulse .9s ease-out 1; }
@keyframes imp-pulse {
	0% { transform: scale(.9); opacity: .6; }
	45% { transform: scale(1.12); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

/* Tablet and mobile (mockup 5592:634) */
@media (max-width: 1100px) {
	.imp-hero-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.imp-copy { padding-top: 24px; }
	.imp-stand-card { max-width: 640px; }
}
@media (max-width: 900px) {
	.imp-budget,
	.in-motion-plan .imp-answer-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.in-motion-plan .imp-answer-list { gap: 0; }
	.in-motion-plan .imp-items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.imp-section { padding: 56px 0; }
	.imp-night { padding: 96px 0 calc(56px + var(--imp-panel)); }
	.imp-white { padding-top: calc(56px + var(--imp-panel)); }
	.imp-seam-cap { padding-bottom: 56px; }
	.imp-copy { padding-top: 0; }
	.imp-lead { font-size: 17px; }
	.imp-card,
	.imp-card-dark,
	.imp-group { padding: 20px; }
	.imp-score { gap: 21px; }
	.imp-ring { width: 118px; height: 118px; }
	.imp-ring-num { font-size: 42px; }
	.imp-verdict-text { font-size: 17px; }
	.imp-bars { gap: 16px; }
	.imp-bar-label { font-size: 13px; }
	.imp-chip { padding: 4px 9px; font-size: 11px; }
	.in-motion-plan .imp-group-head { font-size: 20px; }
	.imp-answer { grid-template-columns: minmax(0, 1fr); gap: 3px; }
	.imp-answer dt { font-size: 13px; }
	.imp-answer dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.in-motion-plan *,
	.in-motion-plan *::before,
	.in-motion-plan *::after { animation: none !important; transition: none !important; }
}
