/* Landing page components. Loads after theme.css and reuses its tokens. */

/* ---------- Section rhythm ---------- */
.opt-sec--alt { background: var(--opt-bone); }
.opt-sec--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.opt-sec__foot {
	margin: 1.25rem 0 0;
	font-size: .875rem;
	line-height: 1.6;
	color: var(--opt-muted);
	max-width: 68ch;
}
.opt-prose { max-width: 68ch; }
.opt-prose p { margin: 0 0 1rem; line-height: 1.7; color: var(--opt-body); }
.opt-prose p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.opt-crumbs { padding: 1.25rem 0 0; font-size: .8125rem; }
.opt-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--opt-muted);
}
.opt-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.opt-crumbs a { color: var(--opt-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.opt-crumbs a:hover { color: var(--opt-olive); border-bottom-color: currentColor; }
.opt-crumbs [aria-current] { color: var(--opt-ink); }

/* ---------- Page lede ---------- */
.opt-lede { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.opt-lede__title {
	font-family: var(--opt-serif);
	font-weight: 400;
	font-size: clamp(2.1rem, 5.2vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -.015em;
	margin: .35rem 0 0;
	color: var(--opt-ink);
	max-width: 20ch;
}
.opt-lede__stand {
	margin: 1rem 0 0;
	max-width: 62ch;
	font-size: clamp(1rem, 1.6vw, 1.115rem);
	line-height: 1.65;
	color: var(--opt-body);
}
.opt-lede__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--opt-muted);
}
.opt-lede__meta li { display: flex; gap: .4rem; align-items: baseline; }
.opt-lede__meta strong { color: var(--opt-ink); font-size: 1.05rem; font-weight: 600; }
.opt-lede .opt-linkrow { margin-top: 1.75rem; }
.opt-lede__verify { margin: 1.25rem 0 0; }
.opt-lede--budget { border-bottom: 3px solid var(--opt-clay); }
.opt-lede--community, .opt-lede--area { border-bottom: 3px solid var(--opt-sage); }
.opt-lede--developer { border-bottom: 3px solid var(--opt-olive); }
.opt-lede--beds { border-bottom: 3px solid var(--opt-stone-2); }

/* ---------- Answer capsule ---------- */
.opt-answercap { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.opt-answercap__box {
	background: var(--opt-paper);
	border: 1px solid var(--opt-line);
	border-left: 4px solid var(--opt-olive);
	border-radius: var(--opt-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	max-width: 78ch;
}
.opt-answercap__q {
	margin: 0;
	font-family: var(--opt-sans);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
	color: var(--opt-ink);
}
.opt-answercap__a {
	margin: .75rem 0 0;
	font-size: clamp(1rem, 1.6vw, 1.0625rem);
	line-height: 1.7;
	color: var(--opt-body);
}
.opt-answercap__points {
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .6rem;
}
.opt-answercap__points li {
	position: relative;
	padding-left: 1.15rem;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--opt-body);
}
.opt-answercap__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: .4rem;
	height: .4rem;
	border-radius: 50%;
	background: var(--opt-sage);
}
.opt-answercap__verify { margin: 1.1rem 0 0; }

/* ---------- Snapshot ---------- */
.opt-snapshot {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	background: var(--opt-paper);
	border: 1px solid var(--opt-line);
	border-radius: var(--opt-radius);
	overflow: hidden;
}
.opt-snapshot__tile {
	background: var(--opt-paper);
	padding: 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .3rem;
	border-right: 1px solid var(--opt-line-soft);
	border-bottom: 1px solid var(--opt-line-soft);
	margin: 0 -1px -1px 0;
}
.opt-snapshot__value {
	font-family: var(--opt-serif);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	line-height: 1.1;
	color: var(--opt-ink);
}
.opt-snapshot__label { font-size: .8125rem; font-weight: 600; color: var(--opt-charcoal); }
.opt-snapshot__qual { font-size: .75rem; line-height: 1.45; color: var(--opt-muted); }
.opt-snapshot__note { margin: .9rem 0 0; font-size: .8125rem; color: var(--opt-muted); max-width: 70ch; }

/* ---------- Project cards ---------- */
.opt-pgrid, .opt-inline-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.25rem;
}
.opt-pcard {
	background: var(--opt-paper);
	border: 1px solid var(--opt-line);
	border-radius: var(--opt-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .85rem;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.opt-pcard:hover { box-shadow: var(--opt-shadow); border-color: var(--opt-stone-2); }
.opt-pcard[hidden] { display: none; }
.opt-pcard__head { display: flex; flex-direction: column; gap: .3rem; }
.opt-pcard__name {
	margin: 0;
	font-family: var(--opt-serif);
	font-weight: 400;
	font-size: 1.35rem;
	line-height: 1.15;
	color: var(--opt-ink);
}
.opt-pcard__where { margin: 0; font-size: .8125rem; color: var(--opt-muted); }
.opt-pill {
	align-self: flex-start;
	margin-top: .2rem;
	font-size: .6875rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
	padding: .2rem .5rem;
	border-radius: 2px;
	background: var(--opt-sage-soft);
	color: var(--opt-olive-deep);
}
.opt-pill--sold-out { background: #f4ece7; color: var(--opt-clay); }
.opt-pill--ready { background: var(--opt-stone); color: var(--opt-charcoal); }
.opt-pcard__price { margin: 0; }
.opt-price { display: flex; flex-direction: column; gap: .1rem; font-weight: 600; font-size: 1.05rem; color: var(--opt-ink); }
.opt-price__scope { font-size: .6875rem; font-weight: 500; letter-spacing: .01em; color: var(--opt-muted); text-transform: none; }
.opt-price--caution { color: var(--opt-clay); }
.opt-price--caution .opt-price__scope { color: var(--opt-clay); }
.opt-pending { font-size: .8125rem; font-style: italic; color: var(--opt-muted); }
.opt-pcard__facts { margin: 0; display: grid; gap: .4rem; }
.opt-pcard__facts > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; border-bottom: 1px dotted var(--opt-line-soft); padding-bottom: .4rem; }
.opt-pcard__facts dt { color: var(--opt-muted); }
.opt-pcard__facts dd { margin: 0; text-align: right; color: var(--opt-charcoal); font-weight: 500; }
.opt-pcard__note { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--opt-muted); }
.opt-pcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .6rem; border-top: 1px solid var(--opt-line-soft); }
.opt-empty { padding: 2rem; border: 1px dashed var(--opt-line); border-radius: var(--opt-radius); color: var(--opt-muted); text-align: center; }

/* ---------- Source chips ---------- */
.opt-chip--src {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .6875rem;
	padding: .25rem .5rem;
	border: 1px solid var(--opt-line);
	border-radius: 2px;
	color: var(--opt-muted);
	text-decoration: none;
	background: var(--opt-bone);
}
.opt-chip--src:hover { border-color: var(--opt-sage); color: var(--opt-olive-deep); }
.opt-chip__kind { font-weight: 600; color: var(--opt-charcoal); }
.opt-chip--portal .opt-chip__kind { color: var(--opt-clay); }
.opt-chip__date { opacity: .75; }

/* ---------- Filter bar ---------- */
.opt-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--opt-line-soft);
}
.opt-chip--filter {
	cursor: pointer;
	font: inherit;
	font-size: .8125rem;
	padding: .4rem .8rem;
	border: 1px solid var(--opt-line);
	border-radius: 999px;
	background: var(--opt-paper);
	color: var(--opt-body);
}
.opt-chip--filter:hover { border-color: var(--opt-sage); }
.opt-chip--filter.is-on { background: var(--opt-olive); border-color: var(--opt-olive); color: #fff; }
.opt-filterbar__count { margin: 0 0 0 auto; font-size: .8125rem; color: var(--opt-muted); }

/* ---------- Tables ---------- */
.opt-tablewrap { overflow-x: auto; }
.opt-table caption { text-align: left; font-size: .8125rem; color: var(--opt-muted); padding-bottom: .75rem; }
.opt-table th, .opt-table td { vertical-align: top; }
.opt-table tbody th[scope="row"] { position: sticky; left: 0; background: var(--opt-paper); }
.opt-sec--alt .opt-table tbody th[scope="row"] { background: var(--opt-bone); }

@media (max-width: 640px) {
	/* Rows become cards, so the horizontal scroll container must stand down or
	   it clips the values off the right edge. */
	.opt-tablewrap { overflow-x: visible; border: 0; background: transparent; }
	.opt-table { min-width: 0; }
	.opt-table caption { display: block; width: 100%; }
	.opt-table, .opt-table tbody, .opt-table tr, .opt-table td, .opt-table th { display: block; width: auto; }
	.opt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.opt-table tr { border: 1px solid var(--opt-line); border-radius: var(--opt-radius); margin-bottom: .85rem; padding: .5rem .85rem; background: var(--opt-paper); }
	.opt-table tbody th[scope="row"] { position: static; width: auto; padding: .4rem 0; font-size: 1rem; border-bottom: 1px solid var(--opt-line-soft); }
	.opt-table td { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .5rem 0; border: 0; text-align: left; }
	.opt-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--opt-muted);
		font-size: .7rem;
		text-transform: uppercase;
		letter-spacing: .05em;
	}
}

/* ---------- Note cards ---------- */
.opt-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.15rem; }
.opt-notes--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.opt-ncard {
	background: var(--opt-paper);
	border: 1px solid var(--opt-line);
	border-radius: var(--opt-radius);
	padding: 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.opt-ncard h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--opt-ink); line-height: 1.3; }
.opt-ncard p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--opt-body); }
.opt-ncard .opt-tlink { margin-top: auto; padding-top: .35rem; }

/* ---------- Community cards ---------- */
.opt-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.opt-ccard { background: var(--opt-paper); border: 1px solid var(--opt-line); border-radius: var(--opt-radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.opt-ccard__name { margin: 0; font-family: var(--opt-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.opt-ccard__name a { color: var(--opt-ink); text-decoration: none; border-bottom: 1px solid var(--opt-stone-2); }
.opt-ccard__name a:hover { border-bottom-color: var(--opt-olive); }
.opt-ccard__where { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--opt-muted); }
.opt-ccard__sum { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--opt-body); }
.opt-ccard__facts { margin: 0; display: grid; gap: .35rem; }
.opt-ccard__facts > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; }
.opt-ccard__facts dt { color: var(--opt-muted); }
.opt-ccard__facts dd { margin: 0; text-align: right; color: var(--opt-charcoal); font-weight: 500; }

/* ---------- Buyer fit ---------- */
.opt-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.opt-fit__col { border: 1px solid var(--opt-line); border-radius: var(--opt-radius); padding: 1.25rem; background: var(--opt-paper); }
.opt-fit__col--yes { border-top: 3px solid var(--opt-sage); }
.opt-fit__col--no { border-top: 3px solid var(--opt-clay); }
.opt-fit__col h3 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 600; color: var(--opt-ink); }
.opt-fit__col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.opt-fit__col li { font-size: .9375rem; line-height: 1.55; color: var(--opt-body); }

/* ---------- Plot explainer ---------- */
.opt-plots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 900px) { .opt-plots { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } }
.opt-plotsvg { width: 100%; height: auto; max-width: 100%; border: 1px solid var(--opt-line); border-radius: var(--opt-radius); background: var(--opt-paper); }
.opt-plots__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.opt-plots__note h3 { margin: 0 0 .3rem; font-size: .9375rem; font-weight: 600; color: var(--opt-ink); }
.opt-plots__note p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--opt-body); }

/* ---------- FAQ ---------- */
.opt-faq__item summary h3 { display: inline; margin: 0; font-size: 1rem; font-weight: 600; }
.opt-faq__a { font-size: .9375rem; line-height: 1.7; color: var(--opt-body); }
.opt-faq__a p { margin: 0 0 .75rem; }
.opt-faq__a p:last-child { margin-bottom: 0; }

/* ---------- Link cluster ---------- */
.opt-cluster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.opt-cluster__col h3 { margin: 0 0 .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--opt-muted); font-weight: 600; }
.opt-cluster__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.opt-cluster__col a { font-size: .9375rem; color: var(--opt-charcoal); text-decoration: none; border-bottom: 1px solid transparent; }
.opt-cluster__col a:hover { color: var(--opt-olive); border-bottom-color: currentColor; }
.opt-cluster__col span { display: block; font-size: .75rem; color: var(--opt-muted); }

/* ---------- Compare drawer ---------- */
.opt-cdrawer {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 40;
	background: var(--opt-charcoal);
	color: #fff;
	box-shadow: var(--opt-shadow-lg);
}
.opt-cdrawer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-block: .85rem; }
.opt-cdrawer__label { margin: 0; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.opt-cdrawer__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-cdrawer__list li { font-size: .8125rem; background: rgba(255, 255, 255, .12); padding: .25rem .6rem; border-radius: 2px; }
.opt-cdrawer__actions { margin-left: auto; display: flex; gap: .6rem; }
.opt-cdrawer .opt-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.opt-cdrawer .opt-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Shortlist CTA ---------- */
.opt-shortcta__box {
	background: var(--opt-olive-deep);
	color: #fff;
	border-radius: var(--opt-radius-lg);
	padding: clamp(1.5rem, 4vw, 2.75rem);
}
.opt-shortcta__box h2 { margin: 0; font-family: var(--opt-serif); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.1; }
.opt-shortcta__box > p { margin: .75rem 0 0; max-width: 60ch; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.opt-shortcta__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .85rem; margin-top: 1.75rem; align-items: end; }
.opt-shortcta__form .opt-field { display: flex; flex-direction: column; gap: .35rem; }
.opt-shortcta__form .opt-field span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.opt-shortcta__form input {
	font: inherit;
	padding: .7rem .8rem;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--opt-radius);
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
.opt-shortcta__form input::placeholder { color: rgba(255, 255, 255, .45); }
.opt-shortcta__form input:focus { outline: 2px solid var(--opt-sage); outline-offset: 1px; }
.opt-field--wide { grid-column: 1 / -1; }
.opt-shortcta__micro { grid-column: 1 / -1; margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .65); }

/* ---------- Methodology ---------- */
.opt-method { background: var(--opt-stone); }
.opt-method__list { margin: 0; padding-left: 1.15rem; display: grid; gap: .75rem; max-width: 78ch; }
.opt-method__list li { font-size: .9375rem; line-height: 1.65; color: var(--opt-body); }
.opt-method__foot { margin: 1.5rem 0 0; font-size: .8125rem; line-height: 1.6; color: var(--opt-muted); max-width: 78ch; }

/* ---------- Print and motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.opt-pcard { transition: none; }
}
