/* BOGS EasyBooks pricing table — used by [bogs_pricing_table] and the
   trial-expired "choose a plan" screen. Brand: navy (#072542) primary,
   red (#D62026) as a highlight accent only (never a dominant fill — a
   site-wide red palette was tried and reverted for being too aggressive),
   Playfair Display for headings, Inter for body, matching bogsbookkeeping.ca's
   established type system. Card-grid layout with a highlighted "most
   popular" tier, generous whitespace, and a simple FAQ accordion — the
   same pattern used by Tofu, Dext and Invoicely's own pricing pages. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

.bogs-pricing {
	--bogs-navy: #072542;
	--bogs-navy-light: #13456f;
	--bogs-red: #d62026;
	--bogs-ink: #1f2a35;
	--bogs-muted: #64748b;
	--bogs-line: #e2e8f0;
	--bogs-bg-soft: #f7f9fb;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bogs-ink);
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px 0 32px;
	box-sizing: border-box;
}

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

.bogs-pricing__intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

.bogs-pricing__heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	color: var(--bogs-navy);
	margin: 0 0 12px;
	line-height: 1.15;
}

.bogs-pricing__subhead {
	font-size: 1.05rem;
	color: var(--bogs-muted);
	line-height: 1.55;
	margin: 0 0 16px;
}

.bogs-pricing__trust {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--bogs-navy);
	background: var(--bogs-bg-soft);
	border: 1px solid var(--bogs-line);
	border-radius: 999px;
	padding: 7px 16px;
	margin: 0;
}

.bogs-pricing__trust-badge {
	color: #1a7f37;
	font-weight: 700;
}

/* v0.56.0 — four cards, not three. The Custom tier joined the row, and a
 * fixed repeat(3) would have dropped it onto a second line by itself,
 * which reads as an afterthought rather than a plan. auto-fit with a floor
 * lets the row carry three or four without this file having to be edited
 * again next time a tier is added or removed. Wayne, on the mockup: "the
 * plans should be in one row." */
.bogs-pricing__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 22px;
	align-items: stretch;
	margin-bottom: 28px;
}

@media (max-width: 860px) {
	.bogs-pricing__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
}

.bogs-pricing-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--bogs-line);
	border-radius: 14px;
	padding: 28px 24px 24px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(7, 37, 66, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bogs-pricing-card:hover {
	box-shadow: 0 8px 24px rgba(7, 37, 66, 0.13);
	transform: translateY(-2px);
}

.bogs-pricing-card--popular {
	border: 2px solid var(--bogs-red);
	box-shadow: 0 8px 28px rgba(214, 32, 38, 0.12);
}

.bogs-pricing-card__badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bogs-red);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.bogs-pricing-card__name {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--bogs-navy);
	margin: 4px 0 6px;
}

.bogs-pricing-card__tagline {
	font-size: 0.88rem;
	color: var(--bogs-muted);
	margin: 0 0 18px;
	min-height: 2.6em;
}

.bogs-pricing-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 2px;
}

.bogs-pricing-card__amount {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 2.3rem;
	font-weight: 700;
	color: var(--bogs-ink);
}

.bogs-pricing-card__period {
	font-size: 0.85rem;
	color: var(--bogs-muted);
}

.bogs-pricing-card__annual {
	font-size: 0.82rem;
	color: var(--bogs-muted);
	margin: 0 0 18px;
}

/* The quote-only card. "Let's talk" is a phrase, not a figure, so it takes
 * the heading's size rather than the price's — set at the price's 2.3rem it
 * wraps on a narrow card and reads as shouting. */
.bogs-pricing-card__price--quote .bogs-pricing-card__amount {
	font-size: 1.6rem;
	line-height: 1.2;
}

.bogs-pricing-card__features {
	list-style: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--bogs-line);
	flex: 1;
}

.bogs-pricing-card__features li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 11px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--bogs-ink);
}

.bogs-pricing-card__features li:before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--bogs-navy);
	font-weight: 700;
}

/* v0.37.0 — per-plan Stripe subscribe buttons, shown on a card once that
   plan/cycle's checkout is configured (see Bogs_Billing::checkout_url()). */
.bogs-pricing-card__subscribe {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bogs-pricing-card__subscribe-button {
	display: block;
	text-align: center;
	background: var(--bogs-navy);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none !important;
	padding: 11px 18px;
	border-radius: 7px;
	transition: background 0.15s ease;
}

.bogs-pricing-card__subscribe-button:hover {
	background: var(--bogs-navy-light);
	color: #fff !important;
}

.bogs-pricing-card__subscribe-button--annual {
	background: #fff;
	color: var(--bogs-navy) !important;
	border: 1px solid var(--bogs-navy);
}

.bogs-pricing-card__subscribe-button--annual:hover {
	background: var(--bogs-bg-soft);
	color: var(--bogs-navy) !important;
}

/* The [bogs_checkout] shortcode page (v0.37.0) — a plain WordPress page
   with just that shortcode on it, so this only styles the small plan-label
   and back-link wrapper; the WP Simple Pay form itself brings its own
   styling. */
.bogs-checkout {
	max-width: 560px;
	margin: 0 auto;
}

.bogs-checkout__plan {
	font-weight: 600;
	color: var(--bogs-navy);
	margin-bottom: 18px;
}

.bogs-checkout__back {
	margin-top: 18px;
	font-size: 0.9rem;
}

.bogs-checkout--message {
	text-align: center;
	padding: 32px 20px;
}

.bogs-pricing__cta {
	text-align: center;
	margin-bottom: 44px;
}

.bogs-pricing__cta-button {
	display: inline-block;
	background: var(--bogs-navy);
	color: #fff !important;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none !important;
	padding: 14px 34px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.bogs-pricing__cta-button:hover {
	background: var(--bogs-navy-light);
	color: #fff !important;
}

.bogs-pricing__addons {
	background: var(--bogs-bg-soft);
	border-radius: 14px;
	padding: 32px 28px;
	margin-bottom: 40px;
}

.bogs-pricing__addons-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem;
	color: var(--bogs-navy);
	margin: 0 0 4px;
	text-align: center;
}

.bogs-pricing__addons-subhead {
	text-align: center;
	color: var(--bogs-muted);
	font-size: 0.9rem;
	margin: 0 0 24px;
}

.bogs-pricing__addons-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 860px) {
	.bogs-pricing__addons-grid {
		grid-template-columns: 1fr;
	}
}

.bogs-addon-card {
	background: #fff;
	border: 1px solid var(--bogs-line);
	border-radius: 10px;
	padding: 18px 20px;
}

.bogs-addon-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--bogs-navy);
	margin: 0 0 8px;
}

.bogs-addon-card__description {
	font-size: 0.87rem;
	color: var(--bogs-muted);
	line-height: 1.5;
	margin: 0;
}

.bogs-pricing__faq {
	max-width: 720px;
	margin: 0 auto;
}

.bogs-pricing__faq-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem;
	color: var(--bogs-navy);
	text-align: center;
	margin: 0 0 20px;
}

.bogs-faq-item {
	border-bottom: 1px solid var(--bogs-line);
	padding: 14px 2px;
}

.bogs-faq-item__question {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.97rem;
	color: var(--bogs-ink);
	list-style: none;
}

.bogs-faq-item__question::-webkit-details-marker {
	display: none;
}

.bogs-faq-item__question:before {
	content: "+";
	display: inline-block;
	width: 18px;
	color: var(--bogs-red);
	font-weight: 700;
}

.bogs-faq-item[open] .bogs-faq-item__question:before {
	content: "\2212";
}

.bogs-faq-item__answer {
	margin: 10px 0 0 18px;
	color: var(--bogs-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Context tweaks: the trial-locked in-app screen sits inside a narrower
   My Account column, so trim the outer padding a little. */
.bogs-pricing--trial-locked {
	padding-top: 0;
}

.bogs-trial-locked-banner {
	display: block;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	border: 1px solid #f3c6c8;
	background: #fcf0f1;
	color: #1f2a35;
	padding: 16px 20px;
	border-radius: 10px;
	margin-bottom: 28px;
	line-height: 1.5;
	font-size: 0.95rem;
}

.bogs-trial-locked-banner strong {
	display: block;
	color: #d62026;
	margin-bottom: 4px;
	font-size: 1.02rem;
}

/* v0.14.0 marketing refresh: feature grid + trust strip (replaces a
   fabricated-testimonial approach — see Bogs_Pricing::trust_points()'s
   docblock for why: no client testimonial has been obtained with the
   written consent BOGS's own compliance rule requires). */

.bogs-pricing__features {
	margin-bottom: 44px;
}

.bogs-pricing__features-heading {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.6rem;
	color: var(--bogs-navy);
	text-align: center;
	margin: 0 0 24px;
}

.bogs-pricing__features-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 860px) {
	.bogs-pricing__features-grid {
		grid-template-columns: 1fr;
	}
}

.bogs-feature-card {
	background: #fff;
	border: 1px solid var(--bogs-line);
	border-radius: 12px;
	padding: 18px 20px;
}

.bogs-feature-card__name {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--bogs-navy);
	margin: 0 0 6px;
}

.bogs-feature-card__description {
	font-size: 0.86rem;
	color: var(--bogs-muted);
	line-height: 1.5;
	margin: 0;
}

.bogs-pricing__trust-strip {
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	margin: 8px 0 12px;
}

.bogs-trust-point {
	font-size: 0.86rem;
	color: var(--bogs-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.bogs-trust-point__badge {
	color: #1a7f37;
	font-weight: 700;
}

/* Shared footer (also defined in bogs-account-home.css for the My
   Account pages) — duplicated here, on purpose, so a plain marketing
   page or the [bogs_pricing_table] shortcode doesn't need the account
   stylesheet loaded just for this one small block. Keep both copies in
   sync if this changes. */

.bogs-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	text-align: center;
	margin-top: 40px;
	padding: 22px 16px 8px;
	border-top: 1px solid var(--bogs-line);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

.bogs-footer__logo {
	height: 26px;
	width: auto;
	display: block;
}

.bogs-footer__text {
	font-size: 0.82rem;
	color: var(--bogs-muted);
	line-height: 1.4;
}

.bogs-footer__text strong {
	color: var(--bogs-navy);
}

.bogs-footer__tagline {
	font-style: italic;
}

/* ---------------------------------------------------------------------------
   Landing on a single plan — v0.61.0.

   The site menu links at individual cards (#bogs-plan-growth), and a browser
   jumping to a fragment puts the target's top edge flush against the top of
   the window. That is wrong twice over: the card's own badge and heading end
   up touching the edge with no breathing room, and if the theme ever puts a
   sticky header back on this page, the top of the card lands underneath it.
   scroll-margin-top is the fix browsers provide for exactly this — it only
   affects where scrolling STOPS, never the layout — so it costs nothing on
   every other visit to the page.
--------------------------------------------------------------------------- */
.bogs-pricing-card[id] {
	scroll-margin-top: 96px;
}

/* A plan reached from the menu is briefly outlined, because otherwise a
   reader arriving mid-page has no idea which of four near-identical cards
   they were sent to. :target applies only while that fragment is in the
   address bar, so it disappears the moment they click anything else. */
.bogs-pricing-card[id]:target {
	outline: 2px solid var(--bogs-navy, #0b2a4a);
	outline-offset: 6px;
}
