/* Phone first, system fonts only: nothing extra to download on slow data. */
:root {
	--ink: #17201b;
	--muted: #5b665f;
	--line: #d9dfdb;
	--bg: #ffffff;
	--alt: #f3f6f2;
	--brand: #1f6f43;
	--brand-ink: #ffffff;
	--wa: #128c4a;
	--err: #a3261c;
	--ok: #1f6f43;
	--accent: #f4b400;
	--chat: #e7ddd3;
	--bubble: #dcf8c6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 36rem; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.foot { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }

.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--alt), #fff); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(2rem, 6vw, 2.9rem); letter-spacing: -0.02em; }
.eyebrow {
	display: inline-block; margin-bottom: 1rem; padding: 0.2rem 0.7rem;
	border-radius: 999px; background: var(--accent); color: var(--ink);
	font-size: 0.85rem; font-weight: 700;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.trust li::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 0.4rem; }

/* Example quote on a phone */
.phone {
	position: relative; margin: 0 auto; width: 100%; max-width: 280px;
	/* Phone proportions whatever the message length; the chat fills the rest. */
	aspect-ratio: 9 / 19.5; display: flex; flex-direction: column;
	border: 9px solid #1d1d1f; border-radius: 40px; overflow: hidden;
	background: var(--chat); box-shadow: 0 20px 40px rgba(23, 32, 27, 0.18);
}
.phone::before {
	content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
	width: 34%; height: 18px; border-radius: 999px; background: #1d1d1f; z-index: 1;
}
.phone-bar { display: flex; align-items: center; gap: 0.6rem; padding: 2rem 0.9rem 0.6rem; background: #075e54; color: #fff; }
.phone-bar small { display: block; opacity: 0.8; font-size: 0.75rem; }
.phone-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.chat { flex: 1; overflow: hidden; padding: 0.9rem 0.6rem; }
.bubble {
	position: relative; margin-left: auto; max-width: 96%;
	padding: 0.7rem 0.8rem 1.4rem; border-radius: 10px 0 10px 10px;
	background: var(--bubble); font-size: 0.8rem; line-height: 1.4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.bubble p { margin: 0 0 0.6rem; }
.bubble-time { position: absolute; right: 0.6rem; bottom: 0.35rem; font-size: 0.7rem; color: #53bdeb; }
.quote { width: 100%; border-collapse: collapse; margin-bottom: 0.6rem; }
.quote td { padding: 0.12rem 0; vertical-align: top; }
.quote td:last-child { text-align: right; padding-left: 0.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-delivery td { padding-top: 0.35rem; }
.quote-total td { border-top: 1px solid rgba(0, 0, 0, 0.2); padding-top: 0.3rem; font-weight: 700; }
.phone-input { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.5rem 0.9rem; }
.phone-input span:first-child { flex: 1; padding: 0.45rem 0.8rem; border-radius: 999px; background: #fff; color: #8a8f8c; font-size: 0.75rem; }
.phone-input span:last-child { width: 2rem; height: 2rem; border-radius: 50%; background: #00a884; }
.phone-caption { margin: 0.6rem 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--alt); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 2.75rem; position: relative; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: 0;
	width: 2rem; height: 2rem; border-radius: 50%;
	background: var(--brand); color: var(--brand-ink);
	display: grid; place-items: center; font-weight: 700;
}
.steps p { color: var(--muted); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 48px; padding: 0.7rem 1.3rem;
	border: 0; border-radius: 8px;
	background: var(--brand); color: var(--brand-ink);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-wa { background: var(--wa); }
.icon { width: 1.2em; height: 1.2em; }

.form { display: grid; gap: 1.1rem; }
.form label, .form legend { display: grid; gap: 0.3rem; font-weight: 600; }
.form input:not([type='checkbox']):not([type='radio']), .form select, .form textarea {
	width: 100%; min-height: 48px; padding: 0.6rem 0.75rem;
	border: 1px solid #9aa59e; border-radius: 8px;
	background: #fff; color: var(--ink); font: inherit;
}
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.form legend { margin-bottom: 0.35rem; }
.form .choice { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; min-height: 40px; padding-top: 0.4rem; }
.form .choice input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--brand); }
.consent { font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 0.8rem 1rem; border-radius: 8px; border-left: 4px solid; }
.notice-err { background: #fbeceb; border-color: var(--err); color: var(--err); }
.notice-ok { background: #e8f3ec; border-color: var(--ok); color: var(--ok); }
.share-url { margin-top: 1rem; overflow-wrap: anywhere; color: var(--muted); }

/* Admin */
.admin-nav a:not(.brand) { font-size: 0.95rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.tile, .card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.tile-k { color: var(--muted); font-size: 0.85rem; margin: 0; }
.tile-v { font-size: 1.4rem; font-weight: 700; margin: 0; }
.cards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card h2 { font-size: 1.05rem; }
.bars { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bars th { text-align: left; font-weight: 400; padding: 0.2rem 0.5rem 0.2rem 0; width: 40%; }
.bar-cell { width: 50%; }
.bar { display: block; height: 0.8rem; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 0.5rem; }
.table-scroll { overflow-x: auto; }
.data { border-collapse: collapse; font-size: 0.85rem; min-width: 60rem; }
.data th, .data td { border-bottom: 1px solid var(--line); padding: 0.4rem 0.5rem; text-align: left; vertical-align: top; }
.feedback { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.muted { color: var(--muted); font-size: 0.85rem; }
.pre { white-space: pre-wrap; margin: 0; }
