/*
 * Polite Reminder — the site.
 *
 * The same palette and the same restraint as the plugin, because somebody who
 * clicks Pricing from inside their WordPress admin should not feel they have
 * gone somewhere else. The accent is the plugin's own #2f4a7d, the pastels are
 * the ones its charts are drawn in, and the greys are the ones the documents
 * are set in.
 */

:root {
	--ink: #1d2327;
	--body: #4b5563;
	--muted: #6b7280;
	--faint: #9099a3;

	--accent: #2f4a7d;
	--accent-dark: #24395f;
	--accent-wash: #f2f5fa;

	--line: #e4e6ea;
	--line-soft: #eef0f3;
	--surface: #fff;
	--surface-quiet: #f8f9fb;

	/* The plugin's chart pastels, and a wash of each for tinted fills. */
	--blue: #8badd4;      --blue-ink: #4a739e;   --blue-wash: #edf3fa;
	--green: #8cc0a3;     --green-ink: #4f8368;  --green-wash: #eef7f1;
	--amber: #e8c68a;     --amber-ink: #97701f;  --amber-wash: #fbf4e4;
	--rose: #c07474;      --rose-ink: #a05656;   --rose-wash: #f9eeee;

	--radius: 10px;
	--shell: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	color: var(--body);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0; }

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

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	padding: 1px 5px;
	border-radius: 4px;
	background: var(--surface-quiet);
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* Visible the moment it is focused, and not before. */
.skip {
	position: absolute; left: -9999px; top: 0; z-index: 10;
	padding: 10px 16px; background: var(--accent); color: #fff;
}
.skip:focus { left: 0; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}

.btn-lead { background: var(--accent); color: #fff; }
.btn-lead:hover { background: var(--accent-dark); }

.btn-quiet { background: var(--surface); color: var(--accent); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); }

/* On the navy band, where the usual pair would vanish. */
.btn-invert { background: #fff; color: var(--accent); }
.btn-invert:hover { background: var(--accent-wash); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; }

.btn-small { padding: 8px 15px; font-size: 15px; background: var(--accent); color: #fff; }
.btn-small:hover { background: var(--accent-dark); }

.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta .btn:focus-visible { outline-color: #fff; }

/* --- Masthead ----------------------------------------------------------- */

.masthead { border-bottom: 1px solid var(--line-soft); background: var(--surface); }

.masthead-in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 72px; flex-wrap: wrap;
}

.brand {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; }
.nav a { font-size: 16px; font-weight: 500; color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a.btn { color: #fff; }

/* --- Hero --------------------------------------------------------------- */

/*
 * Split: the claim on the left, the client's view of an invoice on the right,
 * over a background of soft pastel washes. The colour is in large quiet fields
 * rather than saturated elements, which is how a page about money stays
 * friendly without becoming a toy.
 */
.hero {
	padding: 76px 0 84px;
	background:
		radial-gradient(640px 420px at 8% -12%, var(--blue-wash) 0%, transparent 62%),
		radial-gradient(560px 380px at 100% 4%, var(--amber-wash) 0%, transparent 58%),
		radial-gradient(680px 420px at 78% 118%, var(--green-wash) 0%, transparent 58%),
		var(--surface);
}

.hero-in {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 64px;
	align-items: center;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 18px;
	padding: 5px 13px;
	border-radius: 20px;
	background: var(--blue-wash);
	color: var(--blue-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.hero h1 {
	font-size: 50px;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.lede { margin: 20px 0 0; font-size: 19px; line-height: 1.6; max-width: 34em; }

.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 0; }

.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/*
 * A suggestion of the document rather than a screenshot of it. A capture dates
 * the moment anything moves by a pixel, and at this size nobody is reading it —
 * they are recognising the shape of an invoice. The two toasts beside it are
 * the story in miniature: accepted, then paid.
 */
.hero-show { position: relative; }

.sheet {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 24px 54px rgba(29, 35, 39, 0.12);
	padding: 26px 26px 22px;
}

.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sheet-title { font-size: 22px; font-weight: 800; color: var(--ink); }
.sheet-logo { width: 74px; height: 22px; border-radius: 4px; background: var(--accent-wash); }

.sheet-meta { display: flex; gap: 10px; margin-bottom: 20px; }
.sheet-meta span { height: 9px; border-radius: 4px; background: var(--line-soft); }
.sheet-meta span:first-child { width: 42%; }
.sheet-meta span:last-child { width: 26%; }

.sheet-rows { display: flex; flex-direction: column; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.sheet-rows span { height: 9px; border-radius: 4px; background: var(--line-soft); }
.sheet-rows span:nth-child(2) { width: 84%; }
.sheet-rows span:nth-child(3) { width: 62%; }

.sheet-sum { display: flex; justify-content: flex-end; padding: 16px 0 20px; }
.sheet-total { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.sheet-pay {
	padding: 11px 0; border-radius: 8px; text-align: center;
	background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
}

.toast {
	position: absolute;
	display: flex; align-items: center; gap: 9px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: 0 10px 26px rgba(29, 35, 39, 0.12);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}

.toast strong { font-variant-numeric: tabular-nums; }

.toast-accept { top: -18px; right: -10px; }
.toast-paid { bottom: -20px; left: -26px; }

.toast-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	font-size: 12px; font-weight: 800; color: #fff;
}
.toast-mark-blue { background: var(--blue); }
.toast-mark-green { background: var(--green); }

/* --- Bands -------------------------------------------------------------- */

.band { padding: 76px 0; }
.band-quiet { background: var(--surface-quiet); border-block: 1px solid var(--line-soft); }
.band-top { padding-top: 60px; }

.band-title { font-size: 30px; font-weight: 700; margin-bottom: 36px; }

/* --- How it works ------------------------------------------------------- */

.steps {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px; margin: 0; padding: 0; list-style: none;
}

.steps h3 { font-size: 19px; margin: 16px 0 8px; }
.steps p { margin: 0; font-size: 16px; }

.step-no {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 13px;
	font-size: 20px; font-weight: 800;
}
.step-blue { background: var(--blue-wash); color: var(--blue-ink); }
.step-amber { background: var(--amber-wash); color: var(--amber-ink); }
.step-green { background: var(--green-wash); color: var(--green-ink); }

/* --- Feature grid ------------------------------------------------------- */

.grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px 34px; margin: 0; padding: 0; list-style: none;
}

.grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.grid .tile { grid-row: 1 / 3; }
.grid strong { color: var(--ink); font-size: 16px; align-self: end; }
.grid span:not(.tile) { font-size: 15px; color: var(--muted); line-height: 1.5; }

.tile {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px;
}

.tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/*
 * The pastels taken in turn, so the grid reads as one set rather than eight
 * boxes in the same institutional blue.
 */
.grid li:nth-child(4n + 1) .tile { background: var(--blue-wash); color: var(--blue-ink); }
.grid li:nth-child(4n + 2) .tile { background: var(--green-wash); color: var(--green-ink); }
.grid li:nth-child(4n + 3) .tile { background: var(--amber-wash); color: var(--amber-ink); }
.grid li:nth-child(4n + 4) .tile { background: var(--rose-wash); color: var(--rose-ink); }

/* --- Screenshots ---------------------------------------------------------- */

/*
 * Real captures from a seeded install, in a browser frame so they read as
 * software rather than as diagrams. The seeded business changes every time the
 * shots are retaken, which is fine: it is meant to look like somebody's, not
 * like ours.
 */
.shot { margin: 0; }

.shot-bar {
	display: flex; gap: 6px; align-items: center;
	padding: 10px 14px;
	background: var(--ink);
	border-radius: var(--radius) var(--radius) 0 0;
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }

.shot img {
	display: block; width: 100%; height: auto;
	border: 1px solid var(--line); border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
}

.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.shot-wide { max-width: 880px; margin: 0 auto; }
.shot-wide img { box-shadow: 0 24px 54px rgba(29, 35, 39, 0.12); }

.shot-pair {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px; margin-top: 36px;
}

/* --- The owl ------------------------------------------------------------ */

/*
 * The mascot at a size where it is a mascot, beside the promise it stands
 * for. An owl holding an envelope is a keeper of documents, which is what the
 * paragraph next to it says in words.
 */
.owlband {
	display: grid; grid-template-columns: auto minmax(0, 1fr);
	gap: 64px; align-items: center;
}

.owlband-mark {
	width: 230px; height: 230px;
	filter: drop-shadow(0 14px 26px rgba(47, 74, 125, 0.18));
}

.owlband-say h2 { font-size: 30px; margin-bottom: 16px; }
.owlband-say p { margin: 0 0 14px; max-width: 72ch; }
.owlband-say p:last-child { margin-bottom: 0; }

/* --- Closing ------------------------------------------------------------ */

.cta { padding: 76px 0; background: var(--accent); }

.cta-in { text-align: center; }
.cta h2 { color: #fff; font-size: 32px; }
.cta p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 17px; }
.cta-acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* --- Pricing ------------------------------------------------------------ */

.page-title { font-size: 42px; font-weight: 800; }
.page-lede { margin: 16px 0 44px; font-size: 19px; max-width: 72ch; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }

.plan {
	position: relative;
	display: flex; flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

/* One of them put forward, because offering three and recommending none is a
   decision handed back to somebody with less information than you. */
.plan-pick { border-color: var(--accent); box-shadow: 0 14px 34px rgba(47, 74, 125, 0.12); }

.plan-chip {
	position: absolute; top: -12px; left: 26px;
	margin: 0; padding: 3px 11px; border-radius: 20px;
	background: var(--accent); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.plan h2 { font-size: 20px; margin-bottom: 10px; }

.plan-cost { display: flex; align-items: baseline; gap: 7px; margin: 0 0 14px; }
.plan-cost strong { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.plan-cost span { font-size: 14px; color: var(--muted); }

.plan-blurb { margin: 0 0 12px; font-size: 15px; }
.plan-sites { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.plan-act { margin: auto 0 0; }
.plan-act .btn { display: block; text-align: center; }

.plan-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* --- Comparison --------------------------------------------------------- */

.compare-wrap { overflow-x: auto; margin: 56px 0 0; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 11px 14px; text-align: left; }
.compare thead th { text-align: center; font-size: 16px; color: var(--ink); border-bottom: 2px solid var(--line); }
.compare tbody th { font-weight: 400; color: var(--body); }
.compare tbody td { text-align: center; }
.compare tbody tr:nth-child(even) th, .compare tbody tr:nth-child(even) td { background: var(--surface-quiet); }

.tick { color: var(--green-ink); font-weight: 700; font-size: 17px; }
.nope { color: var(--faint); }

/* --- Questions ---------------------------------------------------------- */

.asked { margin: 64px 0 0; }
.asked h2 { font-size: 26px; margin-bottom: 24px; }
.asked dl { columns: 2 380px; column-gap: 72px; margin: 0; }
.asked dt { font-weight: 700; color: var(--ink); break-after: avoid; }
.asked dd { margin: 6px 0 26px; break-before: avoid; break-inside: avoid; }

/* --- Articles (docs, terms, privacy) ------------------------------------- */

.article { max-width: 76ch; }
.article-owl { float: right; margin: 0 0 18px 26px;
	filter: drop-shadow(0 10px 18px rgba(47, 74, 125, 0.14)); }
.article h1 { font-size: 38px; font-weight: 800; margin-bottom: 18px; }
.article h2 { font-size: 24px; margin: 36px 0 12px; }
.article p, .article li { font-size: 17px; }
.article li { margin-bottom: 6px; }
.article ol, .article ul { padding-left: 24px; }

/* --- Download ------------------------------------------------------------ */

.dl { max-width: 880px; }

.dl-card {
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px 28px; flex-wrap: wrap;
	padding: 24px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--blue-wash), var(--surface) 70%);
}

.dl-name { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.dl-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.dl-gate { display: block; }
.dl-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dl-form input {
	flex: 1 1 240px;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
}
.dl-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.dl-bad { margin: 12px 0 0; font-size: 14px; color: var(--rose-ink); }
.dl-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.dl-how { margin-top: 44px; }
.dl-how h2 { font-size: 24px; margin-bottom: 14px; }
.dl-how li { margin-bottom: 8px; }
.dl-how ol { padding-left: 24px; }

/* --- Not found ----------------------------------------------------------- */

.oops { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.oops-owl { filter: drop-shadow(0 12px 22px rgba(47, 74, 125, 0.16)); }
.oops p { max-width: 44ch; margin: 14px 0 0; }
.oops-acts { margin-top: 26px; }

/* --- Account -------------------------------------------------------------- */

.acct { max-width: 880px; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-form { max-width: 560px; }

.acct-panel {
	margin-top: 28px; padding: 24px 26px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface);
}
.acct-panel h2 { font-size: 20px; margin-bottom: 10px; }
.acct-panel p { margin: 0 0 10px; }
.acct-panel p:last-child { margin-bottom: 0; }
.acct-acts { margin-top: 16px; }

.licence { margin-top: 6px; }
.licence-key code { font-size: 16px; padding: 6px 12px; letter-spacing: 0.04em; }
.licence-revoked { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--rose-ink); }
.licence-none { color: var(--muted); }
.licence-note { font-size: 14px; color: var(--muted); }

.sites { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: 15px; }
.sites th, .sites td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.sites thead th { font-size: 13px; color: var(--muted); font-weight: 600; }

.link-button {
	background: none; border: 0; padding: 0; font: inherit;
	color: var(--accent); cursor: pointer; text-decoration: underline;
}
.link-button:hover { color: var(--accent-dark); }

/* --- Footer ------------------------------------------------------------- */

.footer { padding: 44px 0; border-top: 1px solid var(--line-soft); background: var(--surface-quiet); }
.footer-in { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-mark { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 700; color: var(--ink); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 15px; color: var(--body); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }

/* --- Narrower ----------------------------------------------------------- */

@media (max-width: 940px) {
	.hero { padding: 52px 0 64px; }
	.hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.hero h1 { font-size: 38px; }

	/* The toasts hang outside the sheet, and outside the screen at this
	   width unless they are pulled in. */
	.hero-show { margin: 0 10px; }
	.toast-accept { right: -8px; }
	.toast-paid { left: -8px; }

	.steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }

	.owlband { grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: center; text-align: center; }
	.owlband-mark { width: 160px; height: 160px; }
	.owlband-say p { margin-inline: auto; }

	.plans, .shot-pair { grid-template-columns: minmax(0, 1fr); }
	.band { padding: 54px 0; }
	.footer-legal { margin-left: 0; }
}
