:root {
	--accent: #b6164e;
	--accent-strong: #951240;
	--on-accent: #ffffff;
	--tint: #faeff3;
	--tint-line: #ecc2d1;
}

/* Billing support theme. One design system; the per-site accent lives in tokens. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
	--bg: #f5f6f7;
	--surface: #ffffff;
	--ink: #16191d;
	--ink-2: #4b525c;
	--ink-3: #6b727c;
	--line: #dde1e6;
	--line-2: #e9ecef;
	--radius: 10px;
	--radius-sm: 8px;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.bph {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.bph img { max-width: 100%; height: auto; display: block; }
.bph a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bph a:hover { color: var(--accent-strong); }
.bph h1, .bph h2, .bph h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.bph p { margin: 0; }
.bph ul, .bph ol { margin: 0; padding: 0; }
.bph :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.ico { width: 20px; height: 20px; flex: none; }

.section-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; }

/* Buttons ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border-radius: var(--radius-sm); border: 1px solid transparent;
	font: 600 16px/1.2 var(--sans); white-space: nowrap; text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.bph .btn--solid { background: var(--accent); color: var(--on-accent); }
.bph .btn--solid:hover { background: var(--accent-strong); color: var(--on-accent); }
.bph .btn--line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.bph .btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* Hero -------------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background: var(--surface); border-bottom: 1px solid var(--line-2); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__media { position: relative; }
.hero__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line-2); }
.hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 16ch; }
.hero__domain { color: var(--accent); overflow-wrap: anywhere; }
.hero__lead { margin-top: 20px !important; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ledger {
	position: relative; width: min(340px, 72%); margin: -96px -32px 0 auto;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 rgba(22, 25, 29, 0.03), 0 24px 48px -28px color-mix(in srgb, var(--accent) 45%, transparent);
	overflow: hidden;
}
.ledger__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.ledger__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.ledger__title .ico { color: var(--ink-3); }
.ledger__hint { font-size: 13px; color: var(--ink-3); }
.ledger__rows { list-style: none; padding: 8px 0 !important; }
.ledger__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: var(--ink-3); font-size: 15px; }
.ledger__amt { font-family: var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.ledger__row--match {
	margin: 4px 10px; padding: 14px 10px; border-radius: var(--radius-sm);
	background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-line);
	color: var(--ink);
}
.ledger__row--match .ledger__amt { color: var(--ink); }
.ledger__desc--mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; color: var(--accent-strong); overflow-wrap: anywhere; }
.ledger__note { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.ledger__note .ico { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
	.ledger__row--match { animation: pulse-in .9s .3s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse-in { from { background: transparent; box-shadow: inset 0 0 0 1px transparent; } }

/* Membership lookup ----------------------------------------------------------- */
.lookup { padding: clamp(56px, 8vw, 104px) 0; }
.lookup__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lookup__lead { margin-top: 16px !important; color: var(--ink-2); max-width: 44ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }

/* Forms (parent shortcode markup) -------------------------------------------- */
.bph .wpcf7 form p { margin: 0 0 18px; }
.bph .wpcf7 form br { display: none; }
.bph .wpcf7 fieldset.hidden-fields-container { border: 0; padding: 0; margin: 0; display: none; }
.bph .wpcf7 label { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.bph .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.bph .wpcf7 input[type="text"],
.bph .wpcf7 input[type="email"],
.bph .wpcf7 input[type="tel"],
.bph .wpcf7 textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	font: 400 16px/1.4 var(--sans); color: var(--ink);
	background: var(--surface); border: 1px solid #c9ced5; border-radius: var(--radius-sm);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.bph .wpcf7 textarea { min-height: 132px; height: 132px; resize: vertical; }
.bph .wpcf7 input::placeholder, .bph .wpcf7 textarea::placeholder { color: #737a84; }
.bph .wpcf7 input:focus, .bph .wpcf7 textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint-line); }
.bph .wpcf7 input[aria-invalid="true"], .bph .wpcf7 textarea[aria-invalid="true"] { border-color: #b42318; }
.bph .wpcf7 input[type="submit"] {
	display: block; width: 100%; min-height: 50px; margin-top: 18px; padding: 12px 22px;
	border: 0; border-radius: var(--radius-sm);
	background: var(--accent); color: var(--on-accent);
	font: 600 16px/1.2 var(--sans); cursor: pointer;
	transition: background-color .2s var(--ease), transform .2s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.bph .wpcf7 input[type="submit"]:hover { background: var(--accent-strong); }
.bph .wpcf7 input[type="submit"]:active { transform: translateY(1px); }
.bph .wpcf7 input[type="submit"]:disabled { opacity: .6; cursor: progress; }
.bph .wpcf7-spinner { display: none; }
.bph .wpcf7 form.submitting .wpcf7-spinner { display: inline-block; }
.bph .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; color: #b42318; }
.bph .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); border: 1px solid var(--line) !important; }
.bph .wpcf7-response-output:empty { display: none; }
.bph .wpcf7 form.invalid .wpcf7-response-output,
.bph .wpcf7 form.failed .wpcf7-response-output,
.bph .wpcf7 form.unaccepted .wpcf7-response-output { background: #fef3f2; border-color: #fecdca !important; color: #7a271a; }
.bph .wpcf7 form.sent .wpcf7-response-output { background: #ecfdf3; border-color: #abefc6 !important; color: #054f31; }

/* first + last name in one row */
.bph .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bph .cf7-col { min-width: 0; }
@media (max-width: 420px) { .bph .cf7-row { grid-template-columns: 1fr; gap: 0; } }

/* captcha: input + image + reload in one row */
.bph .captcha-cf7-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 4px; }
.bph .captcha-cf7-wrap > p:first-child { grid-column: 1 / -1; margin: 0 0 -2px !important; }
.bph .captcha-cf7-wrap > p:last-child { display: none; }
.bph .main-cf7-captcha .wpcf7-form-control-wrap { margin-top: 0; }
.bph .captcha-image-container { display: flex; align-items: center; gap: 8px; height: 48px; }
.bph .captcha-image-container img { height: 48px !important; width: auto !important; border: 1px solid #c9ced5 !important; border-radius: var(--radius-sm); background: #fff; }
.bph #reload_captcha {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--radius-sm);
	border: 1px solid #c9ced5; background: var(--surface); color: var(--ink-2); text-decoration: none;
}
.bph #reload_captcha:hover { border-color: var(--accent); color: var(--accent); }
.bph .captcha-refresh-icon { font-size: 0; line-height: 0; display: inline-block; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4'/%3E%3Cpath d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4'/%3E%3Cpath d='M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* FAQ ------------------------------------------------------------------------ */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__aside { position: sticky; top: 32px; }
.desk { margin-top: 28px; display: grid; gap: 4px; }
.desk__row {
	display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
	color: var(--ink) !important; text-decoration: none; font-size: 16px;
	border-top: 1px solid var(--line-2); overflow-wrap: anywhere;
}
.desk__row .ico { color: var(--accent); margin-top: 3px; }
a.desk__row:hover span { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.desk__row--text { color: var(--ink-2) !important; }

.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 0; cursor: pointer; list-style: none;
	font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--accent); }
.qa__chev { color: var(--ink-3); transition: transform .3s var(--ease); }
.qa[open] .qa__chev { transform: rotate(180deg); color: var(--accent); }
.qa__a { padding: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.qa__a p + p, .qa__a ul + p, .qa__a p + ul { margin-top: 12px !important; }
.qa__a ul { padding-left: 20px !important; display: grid; gap: 8px; }
.qa__a li { padding-left: 4px; }
.faq__contact { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); }
.faq__contact b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
	.qa[open] .qa__a { animation: rise .45s var(--ease) both; }
}

/* Contact ---------------------------------------------------------------------- */
.contact { padding: clamp(56px, 8vw, 104px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact__visit { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.contact__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.contact__visit-body { padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; justify-items: start; }
.contact__visit-body h3 { font-size: 1.375rem; line-height: 1.25; }
.contact__visit-body p { color: var(--ink-2); max-width: 44ch; }
.contact__visit-body .btn { margin-top: 8px; }
.contact__lead { margin: 12px 0 28px !important; color: var(--ink-2); }

/* Plain pages ------------------------------------------------------------------ */
.plain { padding: clamp(56px, 8vw, 104px) 0; min-height: 50vh; }
.plain p { margin-top: 20px; }
.plain__body { margin-top: 24px; color: var(--ink-2); max-width: 70ch; }

/* Footer ------------------------------------------------------------------------ */
.colophon { background: var(--surface); border-top: 1px solid var(--line-2); padding: 24px 0; color: var(--ink-3); font-size: 14px; }

/* Layout collapse ---------------------------------------------------------------- */
@media (max-width: 960px) {
	.hero__grid, .lookup__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
	.faq__aside { position: static; }
	.hero__media { max-width: 640px; }
	.ledger { margin-right: 16px; }
	.hero__title { max-width: 20ch; }
}
@media (max-width: 600px) {
	.ledger { width: auto; margin: -48px 12px 0; }
}
@media (max-width: 480px) {
	body.bph { font-size: 16px; }
	.hero__actions .btn { width: 100%; }
	.ledger__row { padding: 11px 16px; }
	.ledger__row--match { margin: 4px 8px; padding: 12px 8px; }
	.ledger__head, .ledger__note { padding-left: 16px; padding-right: 16px; }
}
