/* ---------------------------------------------------------------------------
   RangeSearch marketing site.

   Layout system follows the Startly SaaS reference: a wide airy container,
   generous section padding, alternating white / pale bands, centred section
   headings with a single lead line, pill buttons, and one soft wide shadow
   reserved for surfaces that are genuinely elevated (the demo, the plan
   cards, the mockups) rather than sprayed on everything.

   Colour is RangeSearch's own — the field green, not the reference's violet.
   Type: Gabarito for display (rounded geometric, carries the warmth the
   reference gets from its heading face), Archivo for body and UI.
--------------------------------------------------------------------------- */

:root {
	--white: #ffffff;
	--band: #f4f7f5;
	--band-deep: #eaf0ec;

	--ink: #1b211e;
	--body: #545f59;
	--muted: #7c8781;

	--green: #14663d;
	--green-dark: #0f4d2e;
	--green-bright: #1a8250;
	--green-tint: #e6f0ea;
	--green-line: #c6dccf;

	--line: #e3e9e5;

	--lift: 0 9px 68px rgba(20, 45, 32, 0.09);
	--lift-sm: 0 4px 24px rgba(20, 45, 32, 0.07);

	--r-card: 14px;
	--r-input: 10px;
	--r-pill: 999px;

	--gut: clamp(1.25rem, 4vw, 2rem);
	--pad-y: clamp(4.5rem, 9vw, 7.5rem);
	--wrap: 1180px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--body);
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .display {
	font-family: "Gabarito", "Archivo", system-ui, sans-serif;
	color: var(--ink);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
}

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

a { color: var(--green); }

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

code {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.86em;
	background: var(--green-tint);
	color: var(--green-dark);
	padding: 0.15em 0.4em;
	border-radius: 5px;
}

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gut);
}

.section { padding-block: var(--pad-y); }
.band { background: var(--band); }

/* Centred section head — heading plus one lead line, the reference's rhythm. */

.head {
	max-width: 44rem;
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.head h2 {
	font-size: clamp(1.7rem, 2.9vw, 2.3rem);
	letter-spacing: -0.01em;
	margin-bottom: 0.5em;
}

.head p {
	font-size: 1.08rem;
	color: var(--muted);
	margin: 0;
}

/* ---------------- buttons ---------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.9em;
	border-radius: var(--r-pill);
	font-family: inherit;
	font-size: 0.97rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
	background: var(--green);
	color: var(--white);
}

.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
	background: transparent;
	color: var(--green);
	border-color: var(--green-line);
}

.btn-outline:hover {
	border-color: var(--green);
	background: var(--green-tint);
}

.btn-light {
	background: var(--white);
	color: var(--green-dark);
}

.btn-light:hover { background: var(--green-tint); }

.btn-sm { padding: 0.6em 1.25em; font-size: 0.9rem; }

/* ---------------- masthead ---------------- */

.masthead {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.masthead .wrap {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 4.75rem;
}

.wordmark {
	font-family: "Gabarito", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.wordmark span { color: var(--green); }

.masthead nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2rem);
	margin-left: auto;
}

.masthead nav a:not(.btn) {
	color: var(--body);
	text-decoration: none;
	font-size: 0.97rem;
	font-weight: 500;
}

.masthead nav a:not(.btn):hover { color: var(--green); }

.nav-buttons {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: 0.4rem;
}

/* ---------------- hero ---------------- */

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}

/* Flat tinted shape behind the demo — hard edges, no blur, no gradient. */
.hero::before {
	content: "";
	position: absolute;
	top: -14rem;
	right: -10rem;
	width: 46rem;
	height: 46rem;
	background: var(--green-tint);
	border-radius: 46% 54% 50% 50% / 50%;
	z-index: -1;
}

.hero .wrap {
	display: grid;
	grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}

.hero h1 {
	font-size: clamp(2rem, 3.1vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.012em;
	margin-bottom: 0.5em;
}

.hero-lead {
	font-size: 1.13rem;
	max-width: 32em;
	margin-bottom: 2rem;
}

.hero-actions {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-bottom: 1.6rem;
}

.hero-fact {
	display: flex;
	align-items: center;
	gap: 0.55em;
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0;
}

.hero-fact svg { flex: 0 0 auto; color: var(--green); }

/* ---------------- demo ---------------- */

.demo-frame {
	background: var(--white);
	border-radius: var(--r-card);
	box-shadow: var(--lift);
	overflow: visible;
}

.demo-chrome {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0.85rem 1.1rem;
	border-bottom: 1px solid var(--line);
}

.demo-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--band-deep);
}

.demo-title {
	margin-left: 0.7rem;
	font-size: 0.82rem;
	color: var(--muted);
}

.demo-stage { padding: 1.4rem; position: relative; }

.demo-label {
	display: block;
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 0.7rem;
}

.demo-bar {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1.5px solid var(--line);
	border-radius: var(--r-input);
	padding: 0 1rem;
	background: var(--white);
	transition: border-color 0.18s ease;
}

.demo-bar:focus-within { border-color: var(--green); }

.demo-bar input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	padding: 0.85em 0;
	background: transparent;
}

.demo-bar svg { color: var(--muted); flex: 0 0 auto; }

.demo-panel {
	position: absolute;
	left: 1.4rem;
	right: 1.4rem;
	z-index: 5;
	margin-top: 0.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--lift);
	max-height: 380px;
	overflow-y: auto;
	padding: 0.4rem 0;
}

.demo-heading {
	padding: 0.7em 1.1em 0.35em;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
}

.demo-item {
	display: flex;
	align-items: center;
	gap: 0.85em;
	padding: 0.55em 1.1em;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.demo-item:hover,
.demo-item.is-active { background: var(--green-tint); }

.demo-thumb {
	width: 42px;
	height: 42px;
	border-radius: 9px;
	background: var(--green-tint);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.78rem;
	flex: 0 0 auto;
}

.demo-body { flex: 1; min-width: 0; }

.demo-name {
	display: block;
	font-weight: 600;
	color: var(--ink);
	font-size: 0.95rem;
}

.demo-name mark {
	background: none;
	color: var(--green);
	font-weight: 700;
}

.demo-meta {
	display: block;
	font-size: 0.82rem;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.demo-meta mark { background: none; color: var(--body); font-weight: 600; }

.demo-price {
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
	font-size: 0.95rem;
}

.demo-correction {
	margin: 0.2em 0.6em 0.4em;
	padding: 0.6em 0.8em;
	font-size: 0.88rem;
	background: var(--green-tint);
	color: var(--green-dark);
	border-radius: 8px;
}

.demo-correction strong { font-weight: 700; }

.demo-empty { padding: 1.1em; color: var(--muted); font-size: 0.92rem; }

.demo-took {
	padding: 0.6em 1.1em 0.3em;
	margin-top: 0.3em;
	border-top: 1px solid var(--line);
	font-size: 0.76rem;
	color: var(--muted);
	text-align: right;
}

.demo-hint {
	font-size: 0.88rem;
	color: var(--muted);
	margin: 1rem 0 0;
}

.demo-try {
	font: inherit;
	font-size: 0.88rem;
	font-weight: 500;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--green);
	cursor: pointer;
	padding: 0.25em 0.85em;
	margin: 0 0.15em;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.demo-try:hover { border-color: var(--green-line); background: var(--green-tint); }

/* ---------------- stat strip ---------------- */

.stats {
	border-block: 1px solid var(--line);
	padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.stats .wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	text-align: center;
}

.stat-value {
	font-family: "Gabarito", sans-serif;
	font-size: clamp(1.7rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--green);
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.stat-label {
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0;
}

/* ---------------- comparison ---------------- */

.compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
	max-width: 62rem;
	margin-inline: auto;
}

.compare-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 1.9rem;
}

.compare-card.is-ours {
	border-color: var(--green-line);
	box-shadow: var(--lift-sm);
}

.compare-card h3 {
	font-size: 1.15rem;
	margin-bottom: 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.55em;
}

.compare-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.compare-card li {
	display: flex;
	gap: 0.7em;
	padding: 0.6em 0;
	font-size: 0.96rem;
	border-top: 1px solid var(--line);
}

.compare-card li:first-child { border-top: 0; }

.compare-card li svg { flex: 0 0 auto; margin-top: 0.3em; }

.mark-no { color: #a8563f; }
.mark-yes { color: var(--green-bright); }

.compare-note {
	max-width: 44rem;
	margin: clamp(2rem, 4vw, 3rem) auto 0;
	text-align: center;
	color: var(--muted);
	font-size: 0.98rem;
}

/* ---------------- feature grid ---------------- */

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: clamp(2rem, 4vw, 3.25rem);
}

.feature-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: var(--green-tint);
	color: var(--green);
	margin-bottom: 1.1rem;
}

.features h3 {
	font-size: 1.16rem;
	margin-bottom: 0.5rem;
}

.features p {
	font-size: 0.97rem;
	margin: 0;
}

/* ---------------- alternating deep dives ---------------- */

.dive {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

.dive + .dive { margin-top: clamp(4rem, 8vw, 6.5rem); }

.dive.is-flipped .dive-visual { order: -1; }

.dive h3 {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	margin-bottom: 0.6rem;
}

.dive-lead { font-size: 1.05rem; }

.dive ul {
	list-style: none;
	margin: 1.3rem 0 0;
	padding: 0;
}

.dive li {
	display: flex;
	gap: 0.7em;
	padding: 0.4em 0;
	font-size: 0.97rem;
}

.dive li svg { flex: 0 0 auto; margin-top: 0.35em; color: var(--green-bright); }

/* Mockups standing in for the reference's product screenshots. */

.mock {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--lift);
	padding: 1.4rem;
	font-size: 0.92rem;
}

.mock-title {
	font-family: "Gabarito", sans-serif;
	font-weight: 600;
	color: var(--ink);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.mock-query {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1.5px solid var(--line);
	border-radius: var(--r-input);
	padding: 0.7em 1em;
	color: var(--ink);
	margin-bottom: 0.9rem;
}

.mock-query svg { color: var(--muted); flex: 0 0 auto; }
.mock-strike { text-decoration: line-through; color: var(--muted); }

.mock-callout {
	background: var(--green-tint);
	color: var(--green-dark);
	border-radius: 8px;
	padding: 0.65em 0.9em;
	margin-bottom: 0.9rem;
	font-size: 0.9rem;
}

.mock-row {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.6em 0;
	border-top: 1px solid var(--line);
}

.mock-swatch {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--green-tint);
	color: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.mock-lines { flex: 1; min-width: 0; }

.mock-name {
	display: block;
	font-weight: 600;
	color: var(--ink);
	font-size: 0.92rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mock-sub {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
}

.mock-cost {
	font-weight: 600;
	color: var(--ink);
	font-size: 0.92rem;
	white-space: nowrap;
}

.mock-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.mock-table th {
	text-align: left;
	font-weight: 600;
	color: var(--muted);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding-bottom: 0.6em;
	border-bottom: 1px solid var(--line);
}

.mock-table td {
	padding: 0.6em 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
}

.mock-table td:not(:first-child) { text-align: right; color: var(--body); }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .is-zero td { color: #a8563f; font-weight: 600; }

.mock-note {
	margin-top: 1.1rem;
	font-size: 0.86rem;
	color: var(--muted);
}

.mock-chain { list-style: none; margin: 0; padding: 0; }

.mock-chain li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75em 0;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
}

.mock-chain li:first-child { border-top: 0; }

.mock-step {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--band);
	color: var(--muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 700;
}

.mock-chain li.is-primary .mock-step { background: var(--green); color: var(--white); }
.mock-chain li.is-primary { color: var(--ink); font-weight: 600; }

.mock-time {
	margin-left: auto;
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 400;
}

/* ---------------- pricing ---------------- */

.plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 1.75rem;
	max-width: 54rem;
	margin-inline: auto;
	align-items: start;
}

.plan {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 2.25rem;
	display: flex;
	flex-direction: column;
}

.plan-pro {
	border-color: var(--green-line);
	box-shadow: var(--lift);
	position: relative;
}

.plan-flag {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: var(--green-tint);
	color: var(--green-dark);
	border-radius: var(--r-pill);
	padding: 0.3em 0.9em;
	font-size: 0.76rem;
	font-weight: 600;
}

.plan h3 {
	font-size: 1.05rem;
	color: var(--muted);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.9rem;
}

.plan-price {
	font-family: "Gabarito", sans-serif;
	font-size: 3rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1;
	margin: 0 0 0.4rem;
}

.plan-price span {
	font-family: "Archivo", sans-serif;
	font-size: 0.98rem;
	font-weight: 400;
	color: var(--muted);
}

.plan-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

.plan ul {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	flex: 1;
}

.plan li {
	display: flex;
	gap: 0.7em;
	padding: 0.45em 0;
	font-size: 0.96rem;
}

.plan li svg { flex: 0 0 auto; margin-top: 0.35em; color: var(--green-bright); }

.plan .btn { width: 100%; }

.pricing-note {
	text-align: center;
	color: var(--muted);
	font-size: 0.95rem;
	margin: clamp(2rem, 4vw, 2.75rem) auto 0;
	max-width: 40rem;
}

/* ---------------- faq ---------------- */

.faq-list {
	max-width: 46rem;
	margin-inline: auto;
}

.faq-list details {
	border-bottom: 1px solid var(--line);
}

.faq-list summary {
	font-family: "Gabarito", sans-serif;
	font-size: 1.06rem;
	font-weight: 600;
	color: var(--ink);
	padding: 1.15rem 2.5rem 1.15rem 0;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
	content: "";
	position: absolute;
	right: 0.5rem;
	top: 1.55rem;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details[open] summary { color: var(--green); }
.faq-list details[open] summary::after { border-color: var(--green); }

.faq-answer { padding: 0 2.5rem 1.4rem 0; font-size: 0.98rem; }

/* ---------------- closing call to action ---------------- */

.cta {
	background: var(--green);
	color: #d9e8df;
	text-align: center;
}

.cta h2 { color: var(--white); font-size: clamp(1.85rem, 3.6vw, 2.6rem); }

.cta p { max-width: 34rem; margin-inline: auto; }

.cta-actions {
	display: flex;
	gap: 0.8rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.cta .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.cta .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* ---------------- footer ---------------- */

.footer {
	border-top: 1px solid var(--line);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	font-size: 0.95rem;
}

.footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2.5rem;
	flex-wrap: wrap;
}

.footer-brand { max-width: 22rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 0; }

.footer nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }

.footer nav a {
	color: var(--body);
	text-decoration: none;
	font-weight: 500;
}

.footer nav a:hover { color: var(--green); }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.hero::before { display: none; }
	.dive.is-flipped .dive-visual { order: 0; }
	.masthead nav a:not(.btn) { display: none; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.masthead .wrap { gap: 1rem; }
	/* Free download also sits in the hero, the CTA and the footer. */
	.nav-buttons .btn-outline { display: none; }
	.hero-actions .btn,
	.cta-actions .btn { width: 100%; }
	.plan, .compare-card { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: 0.01ms !important; }
}
