/* Uchaguzi public website. Copyright (c) 2026, Stelden EA Ltd. GPL-3.0.
 * Tokens: contracts/design_tokens.json (Brand Kit v1, party-neutral). No Bootstrap, no Frappe website CSS. */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("/assets/uchaguzi/fonts/PlusJakartaSans.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #0b2530;
	--ink-2: #0d3b3f;
	--ink-3: #114246;
	--teal: #0f766e;
	--teal-dark: #0b5e57;
	--teal-2: #0e9f8c;
	--mint: #5eead4;
	--sand: #f6f2ea;
	--sand-2: #efe9dd;
	--line: #dcd5c7;
	--slate: #4b5b63;
	--white: #ffffff;
	--on-dark: #f2f7f6;
	--on-dark-muted: #a7c4c2;
	--line-dark: rgba(255, 255, 255, 0.12);
	--danger: #c53030;
	--danger-bg: #fce8e8;
	--success: #1f8a4c;
	--success-bg: #e6f4ec;

	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--wrap: 1200px;
	--gutter: 20px;
	--band: 56px;
	--shadow: 0 1px 2px rgba(11, 37, 48, 0.06), 0 8px 24px rgba(11, 37, 48, 0.06);
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --band: 96px; }
}

/* ---- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.625;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 2px; border-radius: 4px; }
.band--ink :focus-visible, .masthead :focus-visible, .foot :focus-visible { outline-color: var(--mint); }
[hidden] { display: none !important; }

.skip {
	position: absolute; left: 12px; top: -48px; z-index: 50;
	padding: 10px 16px; border-radius: var(--r-md);
	background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); font-weight: 800; }
.h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--slate); max-width: 62ch; }
.band--ink .lead { color: var(--on-dark-muted); }
.muted { color: var(--slate); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lead { margin-top: 12px; }

/* ---- bands --------------------------------------------------------------- */

.band { padding: var(--band) 0; }
.band--sand { background: var(--sand); }
.band--paper { background: var(--white); }
.band--ink { background: var(--ink); color: var(--on-dark); }
.band--ink a:not(.btn) { color: var(--mint); }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
	border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem;
	line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); color: var(--white); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mint); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--quiet { min-height: 40px; background: var(--ink-3); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.tag {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
	background: var(--sand-2); color: var(--slate); font-size: 0.8125rem; font-weight: 700;
	letter-spacing: 0; vertical-align: middle; white-space: nowrap;
}
.tag--accent { background: rgba(15, 118, 110, 0.12); color: var(--teal); }
.band--ink .tag { background: var(--ink-3); color: var(--on-dark-muted); }

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

.announce { background: var(--teal); color: var(--white); font-size: 0.9375rem; text-align: center; padding: 8px 0; }
.announce a { color: var(--white); font-weight: 700; }

.masthead { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.masthead__bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { flex: none; display: block; }
.brand img { width: 124px; height: auto; }

.nav { order: 3; }
.nav__toggle {
	display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px;
	border: 1px solid var(--line-dark); border-radius: var(--r-md); cursor: pointer;
	background: transparent; color: var(--on-dark); font: inherit; font-weight: 700;
}
.js .nav__toggle { display: inline-flex; }
.nav__toggle span { font-size: 0.9375rem; }
@media (max-width: 479.98px) {
	.nav__toggle { padding: 0 8px; }
	.nav__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.brand img { width: 112px; }
}
.nav__list {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--ink); border-bottom: 1px solid var(--line-dark);
	padding: 8px var(--gutter) 20px;
}
.nav__list a, .nav__drop > summary {
	display: flex; align-items: center; gap: 4px; padding: 12px 4px; color: var(--on-dark);
	text-decoration: none; font-weight: 600; cursor: pointer; list-style: none;
}
.nav__drop > summary::-webkit-details-marker { display: none; }
.nav__list a:hover, .nav__drop > summary:hover { color: var(--mint); }
.nav__list [aria-current="page"] { color: var(--mint); }
.nav__drop ul { padding-left: 16px; }
.nav__small--cta { margin-top: 12px; }
.nav__list .nav__small--cta a { color: var(--white); justify-content: center; }
.nav__drop[open] > summary .icon { transform: rotate(180deg); }

.masthead__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; order: 2; }
.masthead__signin { color: var(--on-dark); font-weight: 700; text-decoration: none; display: none; }
.masthead__signin:hover { color: var(--mint); }
.masthead__cta { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px; }
.lang a { padding: 3px 10px; border-radius: 999px; color: var(--on-dark-muted); font-size: 0.8125rem; font-weight: 700; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink-3); color: var(--white); }

@media (min-width: 480px) {
	.masthead__signin { display: inline; }
}
@media (min-width: 1024px) {
	.nav { order: 0; margin-left: 24px; }
	.js .nav__toggle { display: none; }
	.js .nav__list, .nav__list { position: static; display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; }
	.nav__list a, .nav__drop > summary { padding: 8px 12px; border-radius: var(--r-sm); }
	.nav__seats { position: relative; }
	.nav__drop ul {
		position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; padding: 8px;
		background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow);
	}
	.nav__drop ul a { color: var(--ink); padding: 8px 12px; }
	.nav__drop ul a:hover { background: var(--sand); color: var(--teal); }
	.masthead__actions { margin-left: auto; }
	.masthead__cta { display: inline-flex; }
	.nav__small { display: none; }
}
/* Small screens: with JavaScript the list is a sheet opened by the menu button; without it, the list
 * sits under the bar in the page flow so every link is still reachable. */
@media (max-width: 1023.98px) {
	.masthead__bar { flex-wrap: wrap; }
	.nav { flex-basis: 100%; }
	.nav__list { position: static; padding: 0 0 12px; border: 0; }
	.js .masthead__bar { flex-wrap: nowrap; gap: 12px; }
	.js .nav { flex-basis: auto; }
	.js .nav__list { position: absolute; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-dark); }
	.js .nav:not(.is-open) .nav__list { display: none; }
}

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

.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
	color: var(--on-dark);
	padding: 64px 0 120px;
}
.hero__mark {
	position: absolute; right: -80px; bottom: -120px; width: 520px; opacity: 0.07; pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.hero__eyebrow { margin: 0 0 16px; color: var(--mint); font-weight: 700; font-size: 1rem; }
.hero h1 { color: var(--white); }
.hero h1 .hero__line { display: block; }
.hero h1 .hero__accent { color: var(--mint); }
.hero__text { margin: 24px 0 32px; font-size: 1.1875rem; line-height: 1.6; color: var(--on-dark-muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 auto; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--on-dark-muted); font-size: 0.9375rem; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .icon { color: var(--mint); }
.hero__media img { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }

/* The countdown under the hero: it takes the room the ballots overlap, so the hero gives its own up. */
.hero.hero--clock { padding-bottom: 40px; }
.clock { background: var(--ink-2); border-top: 1px solid var(--line-dark); padding: 28px 0 112px; text-align: center; }
.clock__inner { display: grid; gap: 16px; justify-items: center; }
.clock__heading { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--on-dark); }
.clock__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px; }
.clock__tiles[hidden], .clock__state[hidden], .clock__line[hidden] { display: none; }
.clock__tile {
	display: grid; gap: 4px; padding: 14px 4px 12px; min-width: 0;
	background: var(--ink); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
}
.clock__num {
	display: block; color: var(--mint); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
	font-size: clamp(1.75rem, 1rem + 4vw, 3.25rem); font-variant-numeric: tabular-nums;
}
.clock__unit { color: var(--on-dark-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.clock__state { margin: 0; color: var(--mint); font-weight: 800; font-size: clamp(1.375rem, 1rem + 2vw, 2rem); }
.clock__line { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
	.clock__num.is-flip { animation: uc-flip 0.32s ease-out; }
	@keyframes uc-flip { from { opacity: 0.35; transform: translateY(-0.12em); } to { opacity: 1; transform: none; } }
}
@media (min-width: 1024px) { .hero.hero--clock { padding-bottom: 56px; } .clock { padding: 36px 0 144px; } .clock__tiles { gap: 12px; } }
@media (min-width: 1024px) {
	.hero { padding: 96px 0 160px; }
	.hero__inner--media { grid-template-columns: 1.1fr 0.9fr; }
	.hero__mark { width: 720px; right: -120px; bottom: -200px; }
}

/* ---- six ballots --------------------------------------------------------- */

.ballots { position: relative; margin-top: -72px; padding-bottom: var(--band); }
.ballots__head { display: grid; gap: 8px; margin-bottom: 16px; padding: 24px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ballots__head p { margin: 0; color: var(--slate); max-width: 64ch; }
.slips {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.slip {
	position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 168px;
	padding: 18px 16px 16px; border-radius: var(--r-md);
	background: var(--white); color: var(--ink); text-decoration: none;
	border: 1px solid var(--line);
	background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(11, 37, 48, 0.045) 27px 28px);
	transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.slip::after { /* the perforated top edge of a ballot paper */
	content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 0;
	border-top: 2px dotted var(--line);
}
.slip:hover { color: var(--ink); border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.slip__box {
	display: grid; place-items: center; width: 44px; height: 44px; margin: 6px 0 10px;
	border: 2px solid var(--ink); border-radius: var(--r-sm); color: var(--teal-2);
}
.slip:hover .slip__box { background: var(--ink); color: var(--mint); }
.slip__seat { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.slip__title { font-size: 0.875rem; font-weight: 600; color: var(--slate); line-height: 1.35; }
.slip__scope { margin-top: auto; padding-top: 8px; font-size: 0.8125rem; color: var(--slate); }
@media (min-width: 768px) { .slips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.ballots__head { grid-template-columns: auto 1fr; align-items: end; gap: 32px; padding: 28px 32px; }
	.slips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- electoral ladder ---------------------------------------------------- */

.ladder-grid { display: grid; gap: 40px; align-items: center; }
.ladder { position: relative; }
.ladder li {
	position: relative; display: flex; align-items: baseline; gap: 16px;
	padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line);
}
.ladder li::before { /* the branch from the level above */
	content: ""; position: absolute; left: 0; top: 0; bottom: 50%; width: 16px;
	border-left: 2px solid var(--teal-2); border-bottom: 2px solid var(--teal-2); border-bottom-left-radius: 8px;
}
.ladder li:first-child { padding-left: 0; }
.ladder li:first-child::before { display: none; }
.ladder li:nth-child(2) { margin-left: 24px; }
.ladder li:nth-child(3) { margin-left: 48px; }
.ladder li:nth-child(4) { margin-left: 72px; border-bottom: 0; }
.ladder__num { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ladder__label { color: var(--slate); font-weight: 600; }
@media (min-width: 1024px) { .ladder-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

/* ---- features ------------------------------------------------------------ */

.features { display: grid; gap: 0 48px; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature__icon {
	flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
	background: rgba(15, 118, 110, 0.1); color: var(--teal);
}
.feature__title { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature p { margin: 0; color: var(--slate); }
.feature .feature__more { margin-top: 8px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; font-weight: 700; text-decoration: none; }
.more-link .icon { transition: transform 0.15s; }
.more-link:hover .icon { transform: translateX(3px); }

.feature-group + .feature-group { margin-top: 56px; }
.feature-group__title { margin-bottom: 8px; font-size: 1.375rem; font-weight: 800; }

/* ---- steps --------------------------------------------------------------- */

.steps { display: grid; gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--ink); color: var(--mint); font-weight: 800;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--slate); }
@media (min-width: 768px) {
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
	.step::after { content: ""; position: absolute; top: 20px; left: 56px; right: -24px; border-top: 2px dashed var(--line); }
	.step:last-child::after { display: none; }
}

/* ---- app ----------------------------------------------------------------- */

.app-grid { display: grid; gap: 32px; align-items: center; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.people li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.phone {
	justify-self: center; width: 260px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 12px;
	background: var(--ink); box-shadow: 0 30px 60px rgba(11, 37, 48, 0.25);
}
.phone__screen {
	height: 100%; border-radius: 26px; overflow: hidden; background: var(--sand);
	display: flex; flex-direction: column;
}
.phone__bar { padding: 18px 16px 14px; background: var(--ink-2); color: var(--white); }
.phone__bar b { display: block; font-size: 0.9375rem; }
.phone__bar span { font-size: 0.75rem; color: var(--on-dark-muted); }
.phone__rows { padding: 12px; display: grid; gap: 8px; }
.phone__row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--white); font-size: 0.8125rem; font-weight: 600; }
.phone__row .icon { color: var(--teal); flex: none; }
.phone__row small { display: block; font-weight: 500; color: var(--slate); font-size: 0.6875rem; }
@media (min-width: 1024px) { .app-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }

/* ---- plans --------------------------------------------------------------- */

.terms { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 32px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.terms button {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
	border: 0; border-radius: 999px; background: transparent; color: var(--slate);
	font: inherit; font-weight: 700; font-size: 0.9375rem; cursor: pointer;
}
.terms button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.terms button small { font-size: 0.75rem; color: var(--teal); font-weight: 700; }
.terms button[aria-pressed="true"] small { color: var(--mint); }
@media (max-width: 639.98px) {
	.terms { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-lg); }
	.terms button { justify-content: center; flex-direction: column; gap: 0; min-height: 52px; border-radius: var(--r-md); line-height: 1.2; }
}

.plans {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
	-webkit-overflow-scrolling: touch;
}
.plans > * { scroll-snap-align: start; }
@media (min-width: 768px) { .plans { grid-auto-columns: minmax(280px, 44%); } }
@media (min-width: 1100px) {
	.plans { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
	.plans--all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plan {
	display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg);
	background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.plan--hi { border: 2px solid var(--teal); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan__name { font-size: 1.5rem; font-weight: 800; }
.plan__seat { margin: 2px 0 0; color: var(--slate); font-size: 0.9375rem; }
.plan__scope { margin: 12px 0 0; display: inline-block; font-size: 0.8125rem; font-weight: 700; color: var(--ink); background: var(--sand); padding: 4px 10px; border-radius: var(--r-sm); align-self: flex-start; }
.plan__price { margin: 20px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); min-height: 104px; }
.price__line { margin: 0; display: flex; align-items: baseline; gap: 2px; }
.price__cur { font-size: 0.875rem; font-weight: 700; color: var(--slate); margin-right: 4px; }
.price__num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price__per { color: var(--slate); font-weight: 600; }
.price__vat { margin: 4px 0 0; font-size: 0.8125rem; color: var(--slate); }
.price__vat strong { color: var(--teal); }
.price__note { margin: 8px 0 0; font-size: 0.8125rem; color: #8a5a12; }
.price__ask { margin: 0; font-size: 1.25rem; font-weight: 700; }
.plan__list { display: grid; gap: 10px; margin-bottom: 24px; font-size: 0.9375rem; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.plan__list .icon { flex: none; color: var(--teal-2); margin-top: 1px; }
.plan__list .is-out { color: var(--slate); text-decoration: line-through; text-decoration-color: rgba(75, 91, 99, 0.5); }
.plan__list .is-out .icon { color: var(--line); }
.plan__cta { margin-top: auto; }
.feature__title .tag { white-space: normal; }
.feature > div { min-width: 0; }
.plan__risk { margin-top: 8px; font-size: 0.8125rem; text-align: center; color: var(--slate); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 720px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { position: sticky; top: 0; background: var(--white); font-weight: 800; }
.compare tbody th { font-weight: 600; color: var(--slate); position: sticky; left: 0; background: var(--white); min-width: 200px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td .icon { color: var(--teal-2); }
.compare td .no { color: var(--line); }

.addons { display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.addons li span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- trust --------------------------------------------------------------- */

.trust { display: grid; gap: 32px; }
.trust__item .icon { color: var(--mint); margin-bottom: 14px; }
.trust__item h3 { color: var(--white); margin-bottom: 8px; }
.trust__item p { margin: 0; color: var(--on-dark-muted); }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; } }
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- stories ------------------------------------------------------------- */

.quotes { display: grid; gap: 24px; }
.quote { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; }
.quote figcaption span { color: var(--slate); }
.quote__outcome { margin-top: 16px; font-weight: 700; color: var(--teal); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- sales strip, cta ---------------------------------------------------- */

.strip {
	display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-lg);
	background: var(--white); border: 1px solid var(--line);
}
.strip h2 { font-size: 1.375rem; font-weight: 800; margin-bottom: 6px; }
.strip p { margin: 0; color: var(--slate); }
@media (min-width: 768px) { .strip { grid-template-columns: 1fr auto; padding: 32px 40px; } }

.cta { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.cta__inner { display: grid; gap: 28px; align-items: center; }
.cta .h2 { color: var(--white); }
.cta .lead { margin: 12px 0 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__risk { margin-top: 12px; font-size: 0.875rem; color: var(--on-dark-muted); }
.countdown { margin-top: 16px; font-weight: 600; font-size: 0.9375rem; color: var(--mint); }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; } }

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

.faq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex: none; color: var(--teal); transition: transform 0.2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 0 20px; color: var(--slate); max-width: 68ch; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---- page head, prose ---------------------------------------------------- */

.page-head { background: var(--ink); color: var(--on-dark); padding: 56px 0 64px; }
.page-head .h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.page-head .lead { margin-top: 16px; color: var(--on-dark-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 0.875rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.notice { padding: 16px 20px; border-radius: var(--r-md); background: var(--white); border-left: 4px solid var(--teal); }

.needs { display: grid; gap: 12px; }
.needs li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); font-weight: 600; }
.needs .icon { flex: none; color: var(--teal); }
.seat-grid { display: grid; gap: 40px; }
.seat-grid > * { min-width: 0; }
@media (min-width: 1024px) { .seat-grid { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; } .seat-grid .plan { position: sticky; top: 96px; } }

/* ---- the office behind a seat -------------------------------------------- */

.office { display: grid; gap: 40px; }
.office__main { max-width: 68ch; }
.office__definition { margin: 20px 0 0; font-size: 1.25rem; line-height: 1.55; font-weight: 600; }
.office__sub { margin: 36px 0 14px; }
.office__text { color: var(--slate); }
.duties li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.duties li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--teal); }

/* Key facts as the counterfoil torn from a ballot book: ink stub, perforated edge. */
.counterfoil {
	position: relative; align-self: start; padding: 28px 28px 20px 36px; border-radius: var(--r-md);
	background: var(--ink); color: var(--on-dark);
}
.counterfoil::before {
	content: ""; position: absolute; top: 14px; bottom: 14px; left: 14px; border-left: 2px dotted var(--on-dark-muted); opacity: 0.6;
}
.counterfoil__title { margin-bottom: 8px; font-size: 1rem; font-weight: 700; color: var(--mint); letter-spacing: 0; }
.counterfoil dl { margin: 0; }
.counterfoil dl > div { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.counterfoil dl > div:last-child { border-bottom: 0; }
.counterfoil dt { font-size: 0.875rem; color: var(--on-dark-muted); }
.counterfoil dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--white); }

.eligibility { display: grid; gap: 8px 48px; margin-top: 16px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rules .icon { flex: none; margin-top: 3px; color: var(--teal); }
.rules--no .icon { color: var(--danger); }

.nominate { display: grid; gap: 48px; }
.nominate__lead { margin: 12px 0 24px; }
.papers { display: grid; gap: 10px; }
.papers li {
	position: relative; padding: 14px 16px 14px 52px; border-radius: var(--r-md);
	background: var(--white); border: 1px solid var(--line);
}
.papers li::before { /* an empty box on a checklist, waiting for the tick */
	content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px;
	border: 2px solid var(--ink); border-radius: 4px;
}
.nominate__fee { margin-top: 20px; }
.nominate__fee p { margin: 4px 0 0; color: var(--slate); }
.timeline { position: relative; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 28px; }
.timeline li::before {
	content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%;
	background: var(--sand); border: 2px solid var(--teal);
}
.timeline li::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 2px; border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li:last-child::before { background: var(--teal); }
.timeline b { color: var(--teal-dark); }
.timeline span { color: var(--ink); }

.facts-foot { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.facts-foot__notes { margin-bottom: 36px; max-width: 80ch; }
.facts-foot__notes h2 { margin-bottom: 10px; }
.facts-foot__notes p { color: var(--slate); }
.facts-foot__notes p:last-child { margin-bottom: 0; }
.sources { margin: 12px 0 20px; padding-left: 1.4em; list-style: decimal; display: grid; gap: 6px; font-size: 0.9375rem; }
.sources a { overflow-wrap: anywhere; }
.facts-foot__small { margin: 0; max-width: 80ch; font-size: 0.875rem; color: var(--slate); }

@media (min-width: 900px) {
	.eligibility { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.office { grid-template-columns: 1fr 340px; gap: 64px; }
	.counterfoil { position: sticky; top: 96px; }
	.nominate { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
}

/* ---- forms --------------------------------------------------------------- */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 340px; gap: 64px; } }
.form { display: grid; gap: 20px; padding: 28px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field label small { font-weight: 500; color: var(--slate); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
	background: var(--white); color: var(--ink); font: inherit; font-weight: 500;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 140, 0.25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.875rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }
.form__note { margin: 0; font-size: 0.875rem; color: var(--slate); }
.alert { padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; }
.alert--ok { background: var(--success-bg); color: var(--success); }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ways { display: grid; gap: 16px; }
.ways li { display: flex; gap: 12px; align-items: flex-start; }
.ways .icon { flex: none; color: var(--teal); margin-top: 2px; }
.ways b { display: block; }

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

.foot { background: #071a22; color: var(--on-dark-muted); padding: 64px 0 24px; font-size: 0.9375rem; }
.foot__grid { display: grid; gap: 40px; }
.foot__about img { width: 124px; margin-bottom: 16px; }
.foot__about p { max-width: 38ch; }
.foot h2 { margin-bottom: 14px; color: var(--white); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: var(--mint); }
.foot__contact li { display: flex; align-items: center; gap: 10px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; }
.foot__base p { margin: 0; }
.foot__social { display: flex !important; flex-wrap: wrap; gap: 16px !important; }
@media (min-width: 768px) { .foot__grid { grid-auto-flow: column; grid-template-columns: 1.6fr; grid-auto-columns: minmax(0, 1fr); } }

/* ---- cookies ------------------------------------------------------------- */

.cookies {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
	display: grid; gap: 12px; padding: 16px 20px; border-radius: var(--r-lg);
	background: var(--ink); color: var(--on-dark); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.cookies p { margin: 0; font-size: 0.9375rem; }
.cookies a { color: var(--mint); }
.cookies__actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookies__actions .btn { flex: 1; }

/* ---- news and free pages ------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips a {
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
	color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none;
}
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.cards { display: grid; gap: 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card__link:hover { color: var(--ink); }
.card__link:hover .card__title { color: var(--teal); }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand-2); }
.card__img--blank { display: grid; place-items: center; color: var(--teal-2); background: linear-gradient(135deg, var(--sand-2), var(--sand)); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--slate); font-weight: 600; }
.card__title { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; transition: color 0.15s; }
.card__summary { color: var(--slate); font-size: 0.9375rem; }
.card__event { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--teal); }
.lead-card { margin-bottom: 24px; }
@media (min-width: 900px) {
	.card--lead .card__link { display: grid; grid-template-columns: 1.3fr 1fr; }
	.card--lead .card__img { height: 100%; aspect-ratio: auto; min-height: 320px; }
	.card--lead .card__body { padding: 40px; justify-content: center; }
	.card--lead .card__title { font-size: 2rem; }
	.card--lead .card__summary { font-size: 1.0625rem; }
}

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 40px; }
.pager > :last-child { justify-self: end; }

.page-head--article .h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); }
.byline { margin: 20px 0 0; color: var(--on-dark-muted); font-size: 0.9375rem; font-weight: 600; }
.article-band { padding-top: 48px; }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); }
.event-box { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0 0 32px; padding: 20px 24px; border-radius: var(--r-md); background: var(--sand); }
.event-box dt { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; color: var(--slate); }
.event-box dt .icon { color: var(--teal); }
.event-box dd { margin: 4px 0 0; font-weight: 700; }

/* What editors write in the Desk or the app (Frappe's Text Editor HTML), set for reading. */
.rich { font-size: 1.0625rem; line-height: 1.75; max-width: 70ch; }
.rich--wide { max-width: none; }
.rich > :first-child { margin-top: 0; }
.rich h1, .rich h2 { font-size: 1.625rem; font-weight: 800; margin: 1.8em 0 0.5em; }
.rich h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 0.4em; }
.rich h4 { font-size: 1.0625rem; font-weight: 700; margin: 1.4em 0 0.3em; }
.rich p { margin: 0 0 1.1em; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin: 0.3em 0; }
.rich li[data-list="bullet"] { list-style-type: disc; }
.rich li[data-list="ordered"] { list-style-type: decimal; }
.rich blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--teal-2); color: var(--slate); font-size: 1.125rem; }
.rich img { border-radius: var(--r-md); margin: 1.5em 0; }
.rich a { font-weight: 600; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; display: block; overflow-x: auto; }
.rich th, .rich td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich th { background: var(--sand); }
.rich pre, .rich code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; }
.rich pre { padding: 16px; border-radius: var(--r-md); background: var(--ink); color: var(--on-dark); overflow-x: auto; }
.rich .ql-align-center { text-align: center; }
.rich .ql-align-right { text-align: right; }
.rich .ql-editor { padding: 0; }

/* Brief B3: getting the app, and the install dialog. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.get-app .lead { margin-top: 8px; max-width: 60ch; }
.get-app__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.get-app__buttons .btn { gap: 8px; }
.get-app__buttons [aria-disabled="true"] { opacity: 0.7; cursor: default; }
.steps { margin: 12px 0 16px; padding-left: 1.4em; display: grid; gap: 8px; }
.release-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.release-facts dt { color: var(--slate); }
.checksum { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; word-break: break-all; }
.dialog { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: var(--r-md); padding: 24px; color: var(--ink); }
.dialog::backdrop { background: rgba(11, 37, 48, 0.55); }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.app-strip { padding-top: 28px; padding-bottom: 28px; }
.app-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.app-strip__text { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.app-strip .get-app__buttons { margin-top: 0; }
