/*
 * Progressive Web: global styles shared by every page.
 * Tokens come from theme.json; the short aliases keep component rules readable.
 */
/* Arial Narrow Bold resized to Big Shoulders' width and height, so headings barely move when the web font arrives. */
@font-face { font-family: "Big Shoulders Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"); font-weight: 800 900; size-adjust: 85.7%; ascent-override: 114.8%; descent-override: 24.8%; line-gap-override: 0%; }

:root {
	color-scheme: only light;
	--ink: var(--wp--preset--color--ink);
	--paper: var(--wp--preset--color--paper);
	--paper-2: var(--wp--preset--color--paper-2);
	--paper-3: var(--wp--preset--color--paper-3);
	--line: var(--wp--preset--color--line);
	--muted: var(--wp--preset--color--muted);
	--muted-on-ink: var(--wp--preset--color--muted-on-ink);
	--rule-on-ink: #2b2a27;
	--orange: var(--wp--preset--color--orange);
	--orange-text: var(--wp--preset--color--orange-text);
	--orange-soft: var(--wp--preset--color--orange-soft);
	--display: var(--wp--preset--font-family--display);
	--sans: var(--wp--preset--font-family--sans);
	--gutter: var(--wp--custom--gutter);
	--shadow: var(--wp--custom--shadow);
	--wrap: var(--wp--custom--wrap);
}

* { box-sizing: border-box; }
picture { display: contents; }
picture > source { display: none; }
.field-error { margin: 2px 0 8px; font-size: 0.9rem; font-weight: 700; color: var(--orange-text); }
input:user-invalid, input[aria-invalid="true"] { border-color: var(--orange-text); }
p, li { text-wrap-style: pretty; }
.jump a[aria-current], .lp-jump a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 4px; }
/* On phones the "On this page" bars scroll sideways: fade the edge that has more links beyond it. */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes jump-fade { from { --fade-start: 0px; --fade-end: 40px; } to { --fade-start: 40px; --fade-end: 0px; } }
@supports (animation-timeline: scroll(x self)) {
	.jump ul, .lp-jump ul { mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent); animation: jump-fade linear both; animation-timeline: scroll(x self); }
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Keep focused and linked-to content clear of the sticky header, the sticky "On this page" bars and,
   on smaller screens, the fixed buy bar at the bottom (WCAG 2.4.11). */
html { scroll-padding-top: 96px; }
html:has(.jump, .lp-jump) { scroll-padding-top: 144px; }
@media (max-width: 1023px) { html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } }
body { margin: 0; font: 400 var(--wp--preset--font-size--base)/1.6 var(--sans); font-stretch: 100%; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em; }
.h2 { font: 800 var(--wp--preset--font-size--heading-2)/1.05 var(--sans); font-stretch: 92%; letter-spacing: -0.02em; }
.h3 { font: 700 var(--wp--preset--font-size--heading-3)/1.2 var(--sans); letter-spacing: -0.01em; }
.lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; max-width: 46ch; }
.muted { color: var(--muted); }

/* Buttons: square, hard shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 3px solid var(--ink); background: var(--paper); font: 700 1rem var(--sans); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); translate: 0 0; transition: translate 0.12s, box-shadow 0.12s; }
.btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--orange); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--orange); }
.btn-dark:hover { box-shadow: 6px 6px 0 var(--orange); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); border-bottom: 3px solid var(--ink); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: var(--wp--custom--header-height); }
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font: 800 1.15rem var(--sans); letter-spacing: -0.01em; }
.mark { position: relative; width: 26px; height: 26px; }
.mark i { position: absolute; width: 18px; height: 18px; border: 2.5px solid var(--ink); background: var(--paper); }
.mark i:nth-child(1) { left: 8px; top: 0; }
.mark i:nth-child(2) { left: 4px; top: 4px; }
.mark i:nth-child(3) { left: 0; top: 8px; background: var(--orange); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--orange); }
.nav-drop { position: relative; }
.nav-drop summary, .nav-drop-btn { list-style: none; cursor: pointer; font-weight: 600; }
.nav-drop-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after, .nav-drop-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav-drop[open] summary::after, .nav-drop:has(:popover-open) .nav-drop-btn::after { transform: translateY(1px) rotate(-135deg); }
.nav-drop summary:hover, .nav-drop[open] summary, .nav-drop-btn:hover, .nav-drop:has(:popover-open) .nav-drop-btn { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--orange); }
/* A popover sits in the top layer; menu.js places it under its button (top and left). */
.nav-drop-panel { position: fixed; inset: auto; top: var(--drop-top, 100px); left: var(--drop-left, 50%); margin: 0; overflow: visible; transform: translateX(-50%); grid-template-columns: repeat(3, max-content); grid-template-rows: auto 1fr; grid-auto-flow: dense; gap: 28px 40px; padding: 24px 28px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.nav-drop-panel:popover-open { display: grid; align-items: start; }
/* Small businesses | Trades (long, two rows) | Property and finance with Other businesses under it,
   so the short groups stack without gaps. */
.nav-drop-panel .nav-group:has(li:nth-child(5)) { grid-row: span 2; }
.nav-drop-panel .nav-group:nth-child(4) { grid-column: 3; }
.nav-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav-group p { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav .nav-group ul { display: block; }
.nav-group li + li { margin-top: 8px; }
.nav-group a { font-weight: 600; }
.header-buy { display: flex; align-items: center; gap: 14px; }
.header-buy .price-chip { font: 900 1.6rem/1 var(--display); }
.header-buy .btn { min-height: 44px; padding: 0 16px; box-shadow: 3px 3px 0 var(--ink); }
.menu { display: none; }
@media (max-width: 1023px) {
	.nav, .header-buy { display: none; }
	.menu { display: block; }
	.menu-btn { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; }
	.menu:has(:popover-open) .menu-btn { background: var(--ink); color: var(--paper); }
	.menu-panel { position: fixed; inset: auto 0 auto 0; top: var(--menu-top, calc(env(safe-area-inset-top, 0px) + var(--wp--custom--header-height) + 3px)); width: auto; margin: 0; color: var(--ink); background: var(--paper); border: 0; border-bottom: 3px solid var(--ink); padding: 8px var(--gutter) 20px; max-height: calc(100dvh - var(--menu-top, 79px)); overflow-y: auto; overscroll-behavior: contain; }
	.menu-panel::backdrop { background: transparent; }
	.menu-panel .nav-drop-panel { position: static; inset: auto; transform: none; display: block; padding: 4px 0 8px 16px; border: 0; box-shadow: none; }
	.menu-panel .nav-drop-panel::before { content: none; }
	.menu-panel .nav { display: block; }
	.menu-panel ul { display: block; }
	.menu-panel .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 800 1.35rem var(--sans); text-decoration: none; }
	.menu-panel .btn { margin-top: 16px; width: 100%; }
	.menu-panel .nav-drop summary { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 800 1.35rem var(--sans); text-decoration: none; }
	.menu-panel .nav-group { margin-top: 12px; }
	.menu-panel .nav-group a { display: block; padding: 8px 0; border: 0; font: 600 1.05rem var(--sans); }
}

/* Ruled section: the recurring transition */
.ruled { position: relative; border-top: 3px solid var(--ink); background: var(--paper); scroll-margin-top: 44px; }
.on-paper { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .on-ink .on-ink .muted { color: var(--muted-on-ink); }
.section { padding-block: var(--wp--preset--spacing--90); }
.section-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.section-foot { margin-top: 24px; max-width: 760px; color: var(--muted); }
.section-foot strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-ink); border-top: 1px solid var(--rule-on-ink); padding-block: 40px; font-size: var(--wp--preset--font-size--sm); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-about { display: grid; gap: 10px; align-content: start; }
.footer-company { font-size: 0.8rem; max-width: 46ch; }
.site-footer .footer-sub { margin: 6px 0 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.site-footer .hours dt { color: var(--paper); }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 4px 14px !important; }
.footer-champions { display: inline-block; justify-self: start; margin-top: 4px; }
.footer-champions img { display: block; width: 190px; height: auto; }
.footer-name { color: var(--paper); font-weight: 800; margin-bottom: 6px; }
.site-footer a { color: var(--paper); }
.site-footer h2 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8d8a83; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

/* Mobile buy bar */
.buy-bar { display: none; }
@media (max-width: 1023px) {
	body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
	.buy-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 3px solid var(--ink); }
	body:has(.menu-panel:popover-open) .buy-bar { display: none; }
	.buy-bar strong { font: 900 1.9rem/1 var(--display); }
	.buy-bar small { display: block; font-size: 0.72rem; color: var(--muted); }
	.buy-bar .btn { min-height: 48px; box-shadow: 3px 3px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover, .btn:active { translate: none; } }

.start-wrap { display: grid; gap: 16px; }
.start-plan { margin: 0; padding-inline: 8px; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.start-plan .text-button { justify-self: center; font-size: .95rem; color: var(--ink); }
.close-band .start-plan { color: var(--muted-on-ink); }
.close-band .start-plan .text-button { color: var(--paper); }
