/* ══════════════════════════════════════════════════════════════
   AN PROLEPSIS — the sowing dossier.

   A document, not an app. The visual system is the site's, damped
   right down: this is read standing in a field on a phone in
   sunlight, and every decorative choice here costs contrast.

   The one loud element is the verdict, because the verdict is the
   product. Everything under it is evidence.
   ══════════════════════════════════════════════════════════════ */

.an-p {
	--p-ink:    #F2F4F1;
	--p-dim:    rgba(242, 244, 241, .66);
	--p-faint:  rgba(242, 244, 241, .40);
	--p-ground: #0A1110;
	--p-panel:  rgba(255, 255, 255, .05);
	--p-line:   rgba(255, 255, 255, .12);

	--p-go:     #5FD8A0;
	--p-cond:   #8FD6C4;
	--p-marg:   #E0A63C;
	--p-stop:   #E0554B;

	color: var(--p-ink);
	background: var(--p-ground);
	font-family: var(--an-font-ui, system-ui, sans-serif);
	padding: clamp(18px, 5vw, 44px) clamp(14px, 4vw, 40px) clamp(56px, 9vw, 104px);
	max-width: 1000px;
	margin: 0 auto;
	overflow-x: clip;
}

.an-p-eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-faint);
	margin-bottom: 8px;
}

.an-p-head h1,
.an-p-verdict h1 {
	margin: 0 0 12px;
	font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	font-weight: 600;
}

.an-p-sub,
.an-p-why {
	margin: 0 0 14px;
	max-width: 62ch;
	font-size: clamp(1rem, .97rem + .2vw, 1.12rem);
	line-height: 1.65;
	color: var(--p-dim);
}

/* ── the verdict ────────────────────────────────────────────── */

.an-p-verdict {
	padding: clamp(18px, 4vw, 30px);
	border-radius: 16px;
	border: 1px solid var(--p-line);
	border-left-width: 5px;
	background: var(--p-panel);
	margin: 0 0 clamp(20px, 4vw, 32px);
}

.an-p-verdict.is-go              { border-left-color: var(--p-go); }
.an-p-verdict.is-go-with-conditions { border-left-color: var(--p-cond); }
.an-p-verdict.is-marginal        { border-left-color: var(--p-marg); }
.an-p-verdict.is-do-not-sow      { border-left-color: var(--p-stop); }
.an-p-verdict.is-insufficient-data { border-left-color: var(--p-line); }

.an-p-verdict.is-go h1              { color: var(--p-go); }
.an-p-verdict.is-go-with-conditions h1 { color: var(--p-cond); }
.an-p-verdict.is-marginal h1        { color: var(--p-marg); }
.an-p-verdict.is-do-not-sow h1      { color: var(--p-stop); }

.an-p-skipped {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--p-line);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--p-faint);
}

/* ── the break-even, which is the point ─────────────────────── */

.an-p-big {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 14px 0 10px;
}

.an-p-big-l {
	flex: 1 1 100%;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--p-faint);
}

.an-p-big b {
	font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--p-go);
}

.an-p-big-u { font-size: 15px; color: var(--p-dim); }

/* ── sections ───────────────────────────────────────────────── */

.an-p-sec { margin: clamp(26px, 5vw, 44px) 0 0; }

.an-p-sec h2 {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--p-faint);
}

.an-p-note,
.an-p-empty,
.an-p-locked,
.an-p-remedy {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--p-dim);
}

.an-p-note.is-warn { color: var(--p-marg); }
.an-p-remedy { color: var(--p-faint); font-style: italic; }

.an-p-locked {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px dashed var(--p-line);
	color: var(--p-faint);
}

.an-p-notice {
	margin: 0 0 22px;
	padding: 13px 15px;
	border-radius: 12px;
	border: 1px solid var(--p-line);
	border-left: 3px solid var(--p-marg);
	background: var(--p-panel);
	font-size: 14px;
	line-height: 1.6;
	color: var(--p-dim);
}

/* ── key/value, which never becomes a table ─────────────────── */

.an-p-kv {
	margin: 14px 0 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--p-line);
	border: 1px solid var(--p-line);
	border-radius: 12px;
	overflow: hidden;
}

@media (min-width: 560px) {
	.an-p-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.an-p-kv > div {
	background: var(--p-ground);
	padding: 11px 14px;
	display: grid;
	gap: 3px;
	min-width: 0;
}

.an-p-kv > div.is-loss { background: rgba(224, 85, 75, .12); }

.an-p-kv dt {
	margin: 0;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--p-faint);
}

.an-p-kv dd {
	margin: 0;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	/* Never truncates. A half-shown figure is worse than no figure. */
	overflow-wrap: anywhere;
}

/* ── checks ─────────────────────────────────────────────────── */

.an-p-checks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 9px;
}

.an-p-checks li {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--p-line);
	border-left-width: 3px;
	background: var(--p-panel);
}

.an-p-checks li.is-pass    { border-left-color: var(--p-go); }
.an-p-checks li.is-caution { border-left-color: var(--p-cond); }
.an-p-checks li.is-binding { border-left-color: var(--p-marg); }
.an-p-checks li.is-stop    { border-left-color: var(--p-stop); }
.an-p-checks li.is-not_run { border-left-color: var(--p-line); opacity: .82; }

.an-p-check-l {
	display: block;
	font-size: 12px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--p-faint);
	margin-bottom: 5px;
}

.an-p-checks p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--p-dim); }
.an-p-checks .an-p-hidden { color: var(--p-faint); font-style: italic; }

/* ── provenance ─────────────────────────────────────────────── */

.an-p-prov { margin: 0; display: grid; gap: 12px; }
.an-p-prov > div { display: grid; gap: 4px; }

.an-p-prov dt { margin: 0; font-size: 14px; font-weight: 600; }

.an-p-prov dd {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--p-dim);
	max-width: 68ch;
}

/* ── the form ───────────────────────────────────────────────── */

.an-p-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0 0 16px;
}

@media (min-width: 620px) {
	.an-p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.an-p-field { display: grid; gap: 6px; min-width: 0; }

.an-p-label { font-size: 14.5px; font-weight: 500; }

.an-p-field input,
.an-p-field select {
	/* 46px, so a thumb hits it. 16px, so iOS does not zoom the page
	   when it is focused — which on a form is the difference between
	   filling it in and giving up. */
	min-height: 46px;
	width: 100%;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--p-line);
	background: var(--p-panel);
	color: var(--p-ink);
	font: inherit;
	font-size: 16px;
}

.an-p-field input:focus-visible,
.an-p-field select:focus-visible {
	outline: 2px solid var(--p-go);
	outline-offset: 1px;
}

.an-p-field input:disabled { color: var(--p-faint); }

.an-p-field small { font-size: 12.5px; line-height: 1.5; color: var(--p-faint); }

.an-p-more {
	margin: 0 0 16px;
	border: 1px solid var(--p-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .025);
	overflow: hidden;
}

.an-p-more > summary {
	list-style: none;
	cursor: pointer;
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 15px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--p-dim);
}

.an-p-more > summary::-webkit-details-marker { display: none; }
.an-p-more > summary::after { content: "+"; font-size: 20px; color: var(--p-faint); }
.an-p-more[open] > summary::after { content: "−"; }
.an-p-more > .an-p-grid { padding: 0 15px 15px; margin: 0; }

.an-p-actions { margin: 20px 0 10px; }

.an-p-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	width: 100%;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--p-go);
	color: #05100C;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

@media (min-width: 620px) { .an-p-btn { width: auto; } }

.an-p-btn:hover { background: #3FC48C; color: #05100C; }
.an-p-btn:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }

.an-p-fine {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--p-faint);
	max-width: 68ch;
}

/* ── upsell ─────────────────────────────────────────────────── */

.an-p-upsell {
	padding: clamp(16px, 4vw, 26px);
	border-radius: 16px;
	border: 1px solid rgba(95, 216, 160, .32);
	background: linear-gradient(165deg, rgba(95, 216, 160, .10), rgba(255, 255, 255, .03) 62%);
}

.an-p-upsell h2 { color: var(--p-ink); font-size: 1.05rem; letter-spacing: -.01em; text-transform: none; }
.an-p-upsell p { font-size: 14.5px; line-height: 1.65; color: var(--p-dim); max-width: 62ch; }

.an-p-upsell ul {
	margin: 12px 0 16px;
	padding-left: 18px;
	display: grid;
	gap: 6px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--p-dim);
}

.an-p-price {
	font-size: 1.6rem !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--p-ink) !important;
	margin: 0 0 12px !important;
}
