/* /offer/ — the permanent offer page (page-templates/offer.php), v2.
   The site's own navy and Space Grotesk, one accent (Backup's teal) for the main action and the picked restore point.
   Structure is hairlines and type, not cards. Everything is scoped under .mhoffer. */

.of-nowrap { white-space: nowrap; }
main.mhoffer {
	--of-bg: #161b27;
	--of-surface: #1c2230;
	--of-surface-2: #222a39;
	--of-line: rgba(255, 255, 255, .08);
	--of-line-strong: rgba(255, 255, 255, .14);
	--of-ink: #f3f5f8;
	--of-text: #b6bfcc;
	--of-muted: #808a99;
	--of-teal: #18AF8F;
	--of-teal-hover: #1fc49f;
	--of-on-teal: #052019;
	padding: 0; margin: 0; max-width: none; width: 100%;
	background: var(--of-bg);
	color: var(--of-text);
	font-family: SpaceGrotesk, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	font-variant-numeric: tabular-nums;
}
.mhoffer *, .mhoffer *::before, .mhoffer *::after { box-sizing: border-box; }
.mhoffer h1, .mhoffer h2 { font-family: SpaceGrotesk-Bold, SpaceGrotesk, sans-serif; font-weight: normal; color: var(--of-ink); margin: 0; }
.mhoffer h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; max-width: 34ch; }
.mhoffer p { margin: 0; }
.mhoffer s { text-decoration-thickness: 1px; }
.of-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.of-narrow > details, .of-narrow > h2 { max-width: 820px; }

/* buttons */
.of-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 10px;
	font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; font-size: 16px; line-height: 1.2; text-decoration: none !important;
	white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.of-btn:focus-visible, .of-point:focus-visible, .mhoffer summary:focus-visible { outline: 2px solid var(--of-teal); outline-offset: 3px; }
.of-btn-primary { background: var(--of-teal); color: var(--of-on-teal) !important; }
.of-btn-primary:hover { background: var(--of-teal-hover); }
.of-btn-quiet { border: 1px solid var(--of-line-strong); color: var(--of-ink) !important; }
.of-btn-quiet:hover { border-color: rgba(255, 255, 255, .32); }
.of-btn-row { padding: 10px 18px; font-size: 15px; border: 1px solid var(--of-line-strong); color: var(--of-ink) !important; }
.of-btn-row:hover { border-color: var(--of-teal); color: var(--of-teal) !important; }

/* hero */
.of-hero { padding: 72px 0 96px; }
.of-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.of-hero h1 { font-size: clamp(2.3rem, 3.7vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.of-lead { margin-top: 24px !important; font-size: 1.15rem; max-width: 33em; color: var(--of-text); }
.of-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.of-small { margin-top: 18px !important; font-size: .9rem; color: var(--of-muted); max-width: 36em; }

/* product logo above the headline, as on the product pages */
.of-logo { display: block; width: 200px; height: auto; margin: 0 0 30px; }

/* video (the same YouTube embed as /backup/) */
.of-video { padding: 88px 0; border-top: 1px solid var(--of-line); }
.of-video-sub { margin-top: 12px !important; color: var(--of-muted); max-width: 40em; }
.of-video-frame { position: relative; margin-top: 32px; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
	border: 1px solid var(--of-line-strong); background: #0f131c; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.of-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the change-history panel: an example of the plugin's restore points; click to pick one */
.of-history { background: var(--of-surface); border: 1px solid var(--of-line); border-radius: 14px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.of-history-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--of-line); }
.of-history-title { color: var(--of-ink); font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; }
.of-history-site { color: var(--of-muted); font-size: .88rem; }
.of-history-list { display: flex; flex-direction: column; }
.of-point { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 22px 9.6em 1fr; align-items: baseline; gap: 0 4px;
	padding: 13px 20px; border-bottom: 1px solid var(--of-line); cursor: pointer; position: relative; color: var(--of-text); }
.of-point::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--of-muted); transform: translateY(-1px); }
.of-point:hover { background: rgba(255, 255, 255, .025); }
.of-point-time { color: var(--of-ink); white-space: nowrap; }
.of-point-text { font-size: .95rem; color: var(--of-text); }
.of-point.is-broken .of-point-text { color: var(--of-muted); }
.of-point.is-broken::before { border-style: dashed; }
.of-point[aria-checked="true"] { background: rgba(24, 175, 143, .08); box-shadow: inset 2px 0 0 var(--of-teal); }
.of-point[aria-checked="true"]::before { background: var(--of-teal); border-color: var(--of-teal); }
.of-point[aria-checked="true"] .of-point-time { color: var(--of-teal); }
.of-history-foot { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; background: var(--of-surface-2); }
.of-history-action { align-self: flex-start; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--of-teal); color: var(--of-teal);
	font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; font-size: .95rem; }
.of-history.picked-broken .of-history-action { border-color: var(--of-line-strong); color: var(--of-muted); }
.of-history-note { font-size: .86rem; color: var(--of-muted); }

/* plans: one table, two rows */
.of-plans, .of-what, .of-faq, .of-end { border-top: 1px solid var(--of-line); }
.of-plans { padding: 88px 0; }
.of-table { margin-top: 36px; border-top: 1px solid var(--of-line-strong); }
.of-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr 150px; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--of-line); }
.of-row-head { padding: 12px 0; font-size: .88rem; color: var(--of-muted); }
.of-cell-plan { color: var(--of-ink); font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; font-size: 1.15rem; }
.of-cell-price { display: flex; align-items: baseline; gap: 12px; }
.of-cell-price strong { font-family: SpaceGrotesk-Bold, SpaceGrotesk, sans-serif; font-weight: normal; color: var(--of-ink); font-size: 1.7rem; letter-spacing: -.01em; }
.of-cell-price s { color: var(--of-muted); }
.of-cell-then { color: var(--of-text); }
.of-cell-buy { justify-self: end; }
.of-both { margin-top: 22px !important; max-width: 62em; color: var(--of-muted); font-size: .95rem; }

/* what it does */
.of-what { padding: 88px 0; }
.of-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin: 36px 0 0; }
.of-dl > div { padding: 22px 0; border-top: 1px solid var(--of-line); }
.of-dl dt { color: var(--of-ink); font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; font-size: 1.08rem; margin: 0 0 6px; }
.of-dl dd { margin: 0; color: var(--of-text); max-width: 38em; }

/* faq */
.of-faq { padding: 88px 0; }
.of-faq h2 { margin-bottom: 24px; }
.of-faq details { border-top: 1px solid var(--of-line); }
.of-faq details:last-of-type { border-bottom: 1px solid var(--of-line); }
.of-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; color: var(--of-ink); font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; position: relative; }
.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 1.5px solid var(--of-muted); border-bottom: 1.5px solid var(--of-muted); transform: rotate(45deg); transition: transform .15s ease; }
.of-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.of-faq details p { padding: 0 0 20px; max-width: 40em; }

/* end */
.of-end { padding: 56px 0 88px; }
.of-end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.of-end-row p { color: var(--of-ink); font-family: SpaceGrotesk-SemiBold, SpaceGrotesk, sans-serif; font-size: 1.25rem; }
.of-end-row .of-actions { margin-top: 0; }

@media (max-width: 980px) {
	.of-hero-grid { grid-template-columns: 1fr; gap: 48px; }
	.of-history { max-width: 600px; }
	.of-dl { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	main.mhoffer { font-size: 16px; }
	.of-wrap { padding: 0 20px; }
	.of-hero { padding: 40px 0 64px; }
	.of-plans, .of-what, .of-faq, .of-video { padding: 64px 0; }
	.of-logo { width: 160px; margin-bottom: 22px; }
	.of-row-head { display: none; }
	.of-row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; }
	.of-cell-plan { grid-column: 1; }
	.of-cell-sites { grid-column: 2; justify-self: end; color: var(--of-muted); }
	.of-cell-price { grid-column: 1 / -1; }
	.of-cell-then { grid-column: 1; font-size: .92rem; color: var(--of-muted); }
	.of-cell-then::before { content: "Then "; }
	.of-cell-buy { grid-column: 2; grid-row: 4; }
	.of-point { grid-template-columns: 20px 1fr; }
	.of-point-text { grid-column: 2; }
	.of-actions .of-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .of-btn, .of-faq summary::after { transition: none; } }
