/* "Plan your project" (/plan-your-project), rebuilt from docs/planner-prototype.html.
   Dark is the default; light mode follows the site switch (body.tt-lightmode-on). */

.planner {
	--pl-accent: #bf4a1a;
	--pl-font-d: "Big Shoulders Display", Impact, sans-serif;
	--pl-font-b: "Poppins", system-ui, sans-serif;
	--pl-bg: #0a0a0a;
	--pl-fg: #efedea;
	--pl-muted: #a9a59d;
	--pl-line: rgba(239, 237, 234, .16);
	--pl-card: #151413;
	--pl-accent-text: #f5533a;
	--pl-chip-hover-bg: #efedea;
	--pl-chip-hover-fg: #0a0a0a;

	color: var(--pl-fg);
	font-family: var(--pl-font-b);
	font-weight: 300;
}
body.tt-lightmode-on .planner {
	--pl-bg: #e5e3dc;
	--pl-fg: #141312;
	--pl-muted: #55524c;
	--pl-line: rgba(20, 19, 18, .18);
	--pl-card: #efede7;
	--pl-accent-text: #a33c12;
	--pl-chip-hover-bg: #141312;
	--pl-chip-hover-fg: #efedea;
}
.planner *,
.planner *::before,
.planner *::after { box-sizing: border-box; }
.planner a { color: var(--pl-accent-text); }
.planner button,
.planner input,
.planner textarea { font-family: var(--pl-font-b); letter-spacing: normal; text-transform: none; }
.planner :focus-visible { outline: 2px solid var(--pl-accent); outline-offset: 3px; }

/* Layout: conversation + sticky estimate panel */
.pl-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(24px, 4vw, 56px);
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(150px, 16vw, 200px) clamp(16px, 4vw, 48px) 0;
}
/* The section's bottom space lives inside the conversation column, so the grid row (the sticky panel's
   track) runs past the last message and the panel isn't pushed up under the header near the end. */
.pl-main { padding-bottom: 120px; }

.pl-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.planner h1 {
	font-family: var(--pl-font-d);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(48px, 8vw, 96px);
	line-height: .88;
	margin: 0 0 8px;
	letter-spacing: .01em;
	color: var(--pl-fg);
}
.planner h1 span { color: var(--pl-accent-text); }
.pl-intro-actions { display: flex; align-items: center; gap: 16px; padding-top: 8px; margin-bottom: 16px; }
.pl-skip { font-size: 14px; color: var(--pl-fg) !important; text-decoration: none; border-bottom: 1px solid var(--pl-line); padding-bottom: 2px; }
.pl-skip:hover { color: var(--pl-accent-text) !important; border-color: var(--pl-accent-text); }
.pl-lede { color: var(--pl-muted); font-size: 15px; margin: 0 0 36px; max-width: 52ch; }

/* Conversation */
.pl-chat { display: flex; flex-direction: column; gap: 22px; }
.pl-bot { max-width: 600px; animation: pl-rise .35s ease both; }
.pl-bot .pl-who { font-family: var(--pl-font-d); font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; color: var(--pl-accent-text); margin-bottom: 6px; }
.pl-bot p { margin: 0 0 6px; font-size: 17px; line-height: 1.55; font-weight: 400; color: var(--pl-fg); }
.pl-me {
	align-self: flex-end;
	max-width: 80%;
	border: 1px solid var(--pl-line);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 500;
	animation: pl-rise .25s ease both;
	text-align: right;
	background: transparent;
	color: var(--pl-fg);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pl-me.pl-multi { border-radius: 18px; }
.pl-me:hover { border-color: var(--pl-fg); }
.pl-me .pl-edit { font-size: 12px; font-weight: 400; color: var(--pl-muted); text-decoration: underline; text-underline-offset: 3px; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pl-bot, .pl-me { animation: none; } }

/* Answers */
.pl-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pl-chip {
	min-height: 44px;
	border: 1px solid var(--pl-line);
	background: transparent;
	color: var(--pl-fg) !important;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
}
.pl-chip small { font-weight: 300; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.pl-chip:hover { background: var(--pl-chip-hover-bg); color: var(--pl-chip-hover-fg) !important; border-color: var(--pl-chip-hover-bg); }
.pl-chip[aria-pressed="true"] { background: var(--pl-fg); color: var(--pl-bg) !important; border-color: var(--pl-fg); }
.pl-chip.pl-ghost { border-style: dashed; }
.pl-chip[hidden] { display: none; }
.pl-primary {
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	background: var(--pl-fg);
	color: var(--pl-bg);
}
.pl-primary:hover { background: var(--pl-accent); color: #fff; }
.pl-primary[disabled] { opacity: .6; cursor: wait; }
.pl-textline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; max-width: 560px; }
.pl-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.pl-field label { font-size: 12.5px; color: var(--pl-muted); margin: 0; }
.pl-field input,
.pl-field textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--pl-line);
	border-radius: 0;
	color: var(--pl-fg);
	font-size: 16px;
	padding: 8px 0;
	outline: none;
	resize: vertical;
	box-shadow: none;
	width: 100%;
}
.pl-field input:focus,
.pl-field textarea:focus { border-bottom-color: var(--pl-accent); outline: none; }
.pl-err { color: var(--pl-accent-text); font-size: 13px; min-height: 18px; }
.pl-undo {
	align-self: flex-start;
	background: none;
	border: 0;
	color: var(--pl-muted);
	font-size: 13px;
	cursor: pointer;
	padding: 6px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: 4px;
	min-height: 32px;
}
.pl-undo:hover { color: var(--pl-fg); }

/* Result card and contact step */
.pl-summary { border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-card); padding: 22px; margin: 8px 0 6px; max-width: 600px; }
.pl-summary .pl-pk { font-family: var(--pl-font-d); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.pl-summary .pl-rng { font-family: var(--pl-font-d); font-weight: 700; font-size: 28px; color: var(--pl-accent-text); margin: 6px 0 14px; }
.pl-summary ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.pl-sub { font-size: 12.5px; color: var(--pl-muted); margin: 0; }
.pl-contact { border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-card); padding: 22px; max-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.pl-contact .pl-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .pl-contact { grid-template-columns: 1fr; } }

/* Estimate panel */
/* Desktop: the estimate stays in view while the conversation scrolls. It sits just below the site
   header (as it looks when it slides back in), stops at the end of the planner section (its grid row),
   and scrolls inside itself when it is taller than the screen. */
.planner { --pl-sticky-top: 150px; }
.pl-aside {
	position: sticky;
	top: var(--pl-sticky-top);
	align-self: start;
	max-height: calc(100vh - var(--pl-sticky-top) - 90px); /* clears the site's scroll-to-top button */
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 16px;
	scrollbar-width: thin;
}
.pl-aside .pl-lines { max-height: none; overflow: visible; }
@media (max-width: 1024px) {
	.planner { --pl-sticky-top: 100px; } /* compact site header */
}

/* The theme gives these page wrappers overflow: hidden, which makes them the sticky element's scroll box
   (one that never scrolls), so the panel used to scroll away. clip still hides sideways overflow but
   doesn't create a scroll box. Planner page only; other pages and smooth scrolling are unchanged. */
@supports (overflow: clip) {
	body:has(.planner) #body-inner,
	body:has(.planner) #tt-content-wrap { overflow: clip; }
}
.pl-panel { border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-card); padding: 22px; }
.pl-panel h2 { font-family: var(--pl-font-d); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 20px; margin: 0 0 4px; color: var(--pl-fg); line-height: 1.1; }
.pl-panel .pl-tot { font-family: var(--pl-font-d); font-weight: 800; font-size: 38px; line-height: 1; margin: 14px 0 4px; color: var(--pl-fg); }
.pl-panel .pl-tot.pl-empty { font-size: 20px; font-weight: 500; color: var(--pl-muted); font-family: var(--pl-font-b); line-height: 1.3; }
.pl-lines { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pl-line); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; max-height: 46vh; overflow: auto; }
.pl-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.pl-lines li span:last-child { white-space: nowrap; font-weight: 500; }
.pl-lines li.pl-inc span:last-child { color: var(--pl-muted); font-weight: 300; }
.pl-panel .pl-fine { font-size: 12px; color: var(--pl-muted); margin: 16px 0 0; line-height: 1.5; }
.pl-mbar,
.pl-sheet { display: none; }
.pl-noscript { font-size: 17px; }

@media (max-width: 900px) {
	.pl-wrap { grid-template-columns: 1fr; padding-bottom: 140px; }
	.pl-main { padding-bottom: 0; }
	.pl-aside { display: none; }
	.pl-mbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 990;
		background: var(--pl-card);
		border-top: 1px solid var(--pl-line);
		padding: 12px 16px;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	.pl-mbar-t { font-family: var(--pl-font-d); font-weight: 800; font-size: 20px; }
	.pl-mbar-l { font-size: 12px; color: var(--pl-muted); }
	.pl-sheet { position: fixed; inset: auto 0 0 0; max-height: 75vh; overflow: auto; z-index: 989; background: var(--pl-bg); border-top: 1px solid var(--pl-line); padding: 20px 16px 90px; }
	.pl-sheet.pl-open { display: block; }
	/* keep the site's scroll-to-top button clear of the estimate bar */
	body:has(.planner) .tt-scroll-to-top { bottom: 90px; }
}
@media (max-width: 560px) {
	.pl-skip { display: none; }
}
.pl-recaptcha:empty { display: none; }
