/*
Theme Name: Copyfree
Description: Copyfree Document Imaging & Solutions. Block theme for the copyfree.com redesign (B2 "Registration, light").
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: copyfree
*/

/* Fonts: self-hosted (SIL Open Font License, see assets/fonts/OFL-*.txt), so visitors' browsers never call Google. */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(assets/fonts/lexend-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Lexend Exa'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/lexend-exa-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-800.woff2) format('woff2'); }

/* Tokens (see docs/handoff-brief.md, section 4) */
:root {
	--cf-red: #ED1B2D;        /* logo red: large text and accents only */
	--cf-btn: #D81B2C;        /* any red background behind white text */
	--cf-red-deep: #C8101F;   /* small red text and icons */
	--cf-ink: #0E0E10;
	--cf-body: #3D3E40;
	--cf-muted: #4A4B4D;
	--cf-band: #F6F6F6;
	--cf-tile: #F4F4F4;
	--cf-line: #E8E8E8;
	--cf-line-2: #E3E3E3;
	--cf-chip: #D0D0D0;
	--cf-exa: 'Lexend Exa', 'Lexend', 'Helvetica Neue', sans-serif;
	--cf-pad: clamp(20px, 4vw, 40px);
	--cf-section: clamp(64px, 8vw, 112px);
}

/* Base */
body { margin: 0; font-family: 'Lexend', 'Helvetica Neue', sans-serif; color: var(--cf-ink); background: #fff; }
html { scroll-padding-top: 120px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cf-ink); outline-offset: 3px; }
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--cf-pad); padding-right: var(--cf-pad); box-sizing: border-box; }
.cf-band { background: var(--cf-band); }
.cf-section { padding-top: var(--cf-section); padding-bottom: var(--cf-section); }
.cf-red { color: var(--cf-red); }
svg { display: block; }

/* Type */
.cf-h1 { margin: 0 0 24px; font-family: var(--cf-exa); font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.cf-h2 { margin: 0 0 20px; font-family: var(--cf-exa); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.cf-h2-sm { margin: 0 0 8px; font-family: var(--cf-exa); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.cf-h2-cat { margin: 0 0 14px; font-family: var(--cf-exa); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.cf-eyebrow { margin: 0 0 16px; font-family: var(--cf-exa); font-size: 14px; letter-spacing: 0.06em; color: var(--cf-muted); text-transform: uppercase; }
.cf-family { margin: 0 0 10px; font-family: var(--cf-exa); font-size: 13px; letter-spacing: 0.04em; font-weight: 600; color: var(--cf-red-deep); }
.cf-lead { margin: 0 0 28px; font-size: 18px; line-height: 1.65; color: var(--cf-body); max-width: 560px; }
.cf-text { margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: var(--cf-body); }
.cf-small { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cf-body); }
.has-brand-red-color { color: var(--cf-red) !important; }
mark.has-inline-color { background: transparent; }

/* Buttons and links */
.cf-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 0; }
.cf-btn > .wp-block-button__link, a.cf-btn {
	display: inline-block; background: var(--cf-btn); color: #fff; text-decoration: none; font-weight: 800;
	font-size: 19px; padding: 15px 26px; border-radius: 0; border: 0; line-height: 1.3;
}
.cf-btn > .wp-block-button__link:hover, a.cf-btn:hover { background: #B8141F; color: #fff; }
.cf-btn-outline > .wp-block-button__link {
	display: inline-block; background: #fff; color: var(--cf-ink); border: 1.5px solid var(--cf-ink);
	font-weight: 700; font-size: 19px; padding: 14px 24px; border-radius: 0; line-height: 1.3; text-decoration: none;
}
a.cf-btn-sm { font-size: 15px; font-weight: 700; padding: 11px 18px; }
.cf-textlink, .cf-textlink a { color: inherit; font-weight: 700; font-size: 17px; }
p.cf-textlink { margin: 0; }
.cf-textlink a, a.cf-textlink { display: inline-block; padding: 12px 0; text-underline-offset: 3px; }
.cf-call { margin: 0; font-size: 17px; color: var(--cf-body); }
.cf-call a { color: var(--cf-ink); font-weight: 700; text-underline-offset: 3px; }

/* Stand-in labels */
.cf-standin { font-family: var(--cf-exa); font-size: 11px; letter-spacing: 0.04em; color: var(--cf-muted); background: #fff; border: 1px dashed #B5B6B8; padding: 4px 8px; }
.cf-media .cf-standin { position: absolute; top: 12px; left: 12px; }

/* Top rule, top bar, header */
.cf-rule { display: flex; flex-direction: column; gap: 3px; }
.cf-rule span { display: block; height: 4px; background: var(--cf-red); }
.cf-rule span + span { height: 1px; }
.cf-topbar { background: var(--cf-band); border-bottom: 1px solid var(--cf-line); font-size: 14px; color: var(--cf-body); }
.cf-topbar .cf-wrap { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; justify-content: flex-end; padding-top: 5px; padding-bottom: 5px; }
.cf-topbar nav { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: center; justify-content: flex-end; }
.cf-topbar a { color: inherit; text-decoration: none; display: inline-block; padding: 4px 0; }
.cf-topbar a:hover { text-decoration: underline; }
.cf-topbar .cf-sep { width: 1px; height: 16px; background: var(--cf-chip); }
.cf-topbar .cf-phone { color: var(--cf-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

.cf-sticky { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--cf-line); }
.admin-bar .cf-sticky { top: 32px; }
.cf-header { display: flex; gap: 16px 40px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.cf-logo { display: block; line-height: 0; flex-shrink: 0; }
.cf-logo img { width: clamp(190px, 18vw, 250px); height: auto; max-width: 100%; }
.cf-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 0 26px; font-size: 16px; font-weight: 700; }
.cf-nav > a, .cf-dd > a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; }
.cf-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--cf-red); }
.cf-nav > a:hover, .cf-dd > a:hover { box-shadow: inset 0 -3px 0 var(--cf-chip); }
.cf-dd { position: relative; }
.cf-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 20; min-width: 270px; background: #fff; border: 1px solid var(--cf-line-2); border-top: 3px solid var(--cf-red); box-shadow: 0 12px 28px rgba(14,14,16,0.12); padding: 8px 0; }
.cf-dd:hover .cf-menu, .cf-dd:focus-within .cf-menu { display: block; }
.cf-menu a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; font-weight: 500; }
.cf-menu a:hover { background: var(--cf-band); }
a.cf-quote { color: #fff; background: var(--cf-btn); text-decoration: none; font-weight: 700; padding: 12px 20px; font-size: 16px; flex-shrink: 0; }
a.cf-quote:hover { background: #B8141F; }
.cf-burger { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 1.5px solid var(--cf-ink); cursor: pointer; padding: 0; }
.cf-mobile { border-top: 1px solid var(--cf-line); padding-bottom: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.cf-mobile[hidden] { display: none; }
.cf-mobile a { display: block; padding: 12px 0; color: var(--cf-ink); text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--cf-line); }
.cf-mobile .cf-mobile-sub a { font-weight: 500; font-size: 16px; padding-left: 16px; }
.cf-mobile .cf-mobile-label { margin: 16px 0 4px; font-family: var(--cf-exa); font-size: 12px; letter-spacing: 0.06em; color: var(--cf-muted); }
.cf-mobile a.cf-quote { display: inline-block; margin-top: 16px; border: 0; color: #fff; }
@media (max-width: 1100px) {
	.cf-nav, .cf-header > .cf-quote { display: none; }
	.cf-burger { display: inline-flex; }
}
@media (min-width: 1101px) { .cf-mobile { display: none; } }

/* Breadcrumbs */
.cf-crumbs { font-size: 14px; margin-bottom: 28px; }
.cf-crumbs ol { margin: 0; padding: 0; list-style: none; }
.cf-crumbs li { display: inline; }
.cf-crumbs li + li::before { content: "/"; margin: 0 10px; color: #8A8B8E; }
.cf-crumbs a { color: var(--cf-body); text-underline-offset: 3px; }
.cf-crumbs [aria-current] { color: var(--cf-ink); font-weight: 600; }

/* Generic two-part rows */
.cf-row { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 80px); align-items: center; }
.cf-row-end { align-items: flex-end; }
.cf-grow { flex: 1 1 460px; min-width: 0; }
.cf-grow-sm { flex: 1 1 380px; min-width: 0; }
.cf-media { flex: 1 1 420px; min-width: 0; position: relative; background: var(--cf-tile); display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 28px 40px; height: clamp(240px, 26vw, 340px); }
.cf-media svg { width: 100%; height: 100%; }
.cf-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.cf-sechead p { margin: 0; }

.cf-m0 { margin: 0 !important; }
.cf-sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--cf-body); }

/* Home: hero */
.cf-hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); gap: clamp(32px, 5vw, 64px); }
.cf-hero .cf-h1 { font-family: 'Plus Jakarta Sans', 'Lexend', 'Helvetica Neue', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.cf-hero .cf-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; margin-bottom: 32px; max-width: 520px; }
.cf-hero .wp-block-buttons { margin-bottom: 40px; gap: 12px; }
.cf-hero-media { flex: 1 1 440px; height: clamp(300px, 38vw, 480px); padding: 0; }
.cf-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; border-top: 1px solid var(--cf-line); padding-top: 24px; max-width: 520px; }
.cf-trust span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }

/* Home: product tiles */
.cf-products-sec { padding-top: clamp(24px, 3vw, 40px); padding-bottom: var(--cf-section); }
.cf-products-sec .cf-sechead { margin-bottom: 40px; }
.cf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 44px 24px; }
/* Six tiles: 3 × 2 on wide screens, 2 × 3 on tablets, one column on phones. */
@media (min-width: 900px) { .cf-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 520px) and (max-width: 899px) { .cf-tiles { grid-template-columns: repeat(2, 1fr); } }
.cf-tile { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cf-tile-img { height: 180px; background: var(--cf-tile); display: flex; align-items: center; justify-content: center; padding: 16px 20px; box-sizing: border-box; margin-bottom: 10px; }
.cf-tile-img svg { width: 100%; height: 100%; }
.cf-tile .cf-family { font-size: 12px; margin: 0; }
.cf-tile h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; }
.cf-tile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cf-body); }
.cf-tile p.cf-more { font-weight: 700; color: var(--cf-ink); margin-top: 4px; }
.cf-tile .cf-more a { color: inherit; text-decoration: none; }
.cf-tile .cf-more a::after { content: ""; position: absolute; inset: 0; }
.cf-tile:hover h3 { text-decoration: underline; }

/* Home: Managed Print */
.cf-stack { display: flex; flex-direction: column; align-items: flex-start; }
.cf-stack > * { flex: none; width: 100%; }
.cf-stack .cf-text { max-width: 720px; }
.cf-stack .cf-h2 { margin-bottom: 20px !important; }

/* Home: Managed Print steps */
.cf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 28px; margin-top: clamp(40px, 5vw, 64px); }
.cf-step { display: flex; flex-direction: column; gap: 12px; }
.cf-step-img { position: relative; height: 120px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px 28px; box-sizing: border-box; }
.cf-step-img > svg { width: 100%; height: 100%; }
.cf-step-arrow { position: absolute; top: 50%; right: -27px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: #fff; border: 1.5px solid var(--cf-chip); display: flex; align-items: center; justify-content: center; z-index: 2; }
@media (max-width: 760px) { .cf-step-arrow { display: none; } }
.cf-step .cf-num { margin: 8px 0 0; font-family: var(--cf-exa); font-size: 14px; font-weight: 600; color: var(--cf-red-deep); }
.cf-step h3 { margin: 0; font-size: 22px; font-weight: 800; }
.cf-step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cf-body); }

/* Home: software */
.cf-cards2 { display: flex; flex-wrap: wrap; gap: 24px; }
.cf-soft { flex: 1 1 440px; min-width: 0; background: var(--cf-band); display: flex; flex-direction: column; }
.cf-soft-img { height: clamp(200px, 22vw, 260px); overflow: hidden; }
.cf-soft-img svg { width: 100%; height: 100%; }
.cf-soft-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.cf-soft-body .cf-family { font-size: 12px; margin: 0 0 -6px; }
.cf-soft-body h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.cf-soft-body .cf-text { margin: 0; }
.cf-soft-body h3 .cf-standin { margin-left: 10px; font-size: 11px; font-weight: 400; letter-spacing: 0.04em; vertical-align: middle; }
.cf-soft-body .cf-textlink { margin-top: auto; }

/* Home: why Copyfree, stats, timeline */
.cf-why { gap: clamp(40px, 5vw, 72px); }
.cf-why .cf-text { margin-bottom: 0; }
.cf-why .cf-text a { text-underline-offset: 3px; }
.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 32px; margin-top: 36px; }
.cf-stat { border-top: 1px solid var(--cf-ink); padding-top: 18px; }
.cf-stat .cf-stat-num { margin: 0; font-family: var(--cf-exa); font-size: clamp(28px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.cf-stat p:last-child { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--cf-body); }
.cf-panel { flex: 1 1 400px; min-width: 0; background: #fff; padding: clamp(28px, 4vw, 44px); box-sizing: border-box; }
.cf-panel .cf-eyebrow { margin-bottom: 28px; }
ul.cf-timeline { margin: 0; padding: 0; list-style: none; }
.cf-timeline li { position: relative; padding: 0 0 24px 36px; font-size: 16px; line-height: 1.55; color: var(--cf-body); }
.cf-timeline li:last-child { padding-bottom: 0; }
.cf-timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--cf-red); box-sizing: border-box; }
.cf-timeline li.is-key::before { background: var(--cf-red); }
.cf-timeline li::after { content: ""; position: absolute; left: 7px; top: 24px; bottom: 4px; width: 2px; background: var(--cf-line-2); }
.cf-timeline li:last-child::after { display: none; }
.cf-timeline strong { display: block; margin-bottom: 4px; font-family: var(--cf-exa); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--cf-ink); }

/* Closing banner */
.cf-closing { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: center; justify-content: space-between; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cf-closing h2 { margin: 0; font-family: var(--cf-exa); font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 720px; }

/* Footer */
.cf-footer { border-top: 1px solid var(--cf-line); background: var(--cf-band); }
.cf-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 40px; font-size: 15px; line-height: 1.9; color: var(--cf-body); }
.cf-footer-cols img { width: 170px; height: auto; display: block; margin-bottom: 16px; }
.cf-footer-cols address { font-style: normal; }
.cf-footer-cols nav, .cf-footer-cols .cf-col { display: flex; flex-direction: column; }
.cf-footer-cols h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--cf-ink); line-height: 1.9; }
.cf-footer a { color: inherit; }
.cf-footer-bottom { border-top: 1px solid #E0E0E0; padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--cf-body); }
.cf-footer-bottom > span { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.cf-footer-bottom .cf-standin { padding: 8px 12px; }

/* Products overview */
.cf-page-intro { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 40px); }
.cf-page-intro .cf-h1 { margin: 0; font-size: clamp(32px, 4.6vw, 56px); }
.cf-page-intro .cf-text { margin-bottom: 24px; }
.cf-jump { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: clamp(36px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--cf-line); }
.cf-jump > span { font-size: 14px; font-weight: 700; margin-right: 6px; }
.cf-jump a { color: var(--cf-ink); text-decoration: none; border: 1.5px solid var(--cf-chip); padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 999px; }
.cf-jump a:hover { border-color: var(--cf-ink); }
.cf-cat { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 5vw, 72px); align-items: center; }
.cf-cat + .cf-cat { border-top: 1px solid var(--cf-line); }
.cf-cat:nth-child(even) { flex-direction: row-reverse; }
.cf-cat-body { flex: 1 1 440px; min-width: 0; }
.cf-types-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
ul.cf-chips { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chips li { font-size: 14px; font-weight: 500; background: var(--cf-tile); padding: 7px 12px; }
.cf-soft-banner { background: var(--cf-band); padding: clamp(24px, 3vw, 36px) clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-top: 8px; margin-bottom: clamp(56px, 7vw, 96px); }
.cf-soft-banner .cf-family { margin-bottom: 6px; }
.cf-soft-banner h2 { margin: 0; font-size: 22px; font-weight: 700; }
.cf-soft-banner .cf-small { margin-top: 6px; }
.cf-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.cf-card { background: #fff; padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.cf-card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 800; }
.cf-after-cards { margin-top: 24px; }

/* Category page */
.cf-cat-hero { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 64px); }
.cf-cat-hero .cf-family { margin-bottom: 14px; }
.cf-cat-hero .cf-h1 { margin-bottom: 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.cf-cat-hero .cf-media { flex: 1 1 400px; height: clamp(260px, 30vw, 380px); padding: 32px; }
.cf-models-wrap { padding-bottom: clamp(56px, 7vw, 96px); }
.cf-models-head { border-top: 1px solid var(--cf-line); padding-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 24px; }
.cf-models-head .cf-h2-sm { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 6px; }
.cf-models-count { margin: 0; font-size: 15px; color: var(--cf-body); }
.cf-models-head .cf-standin { padding: 6px 10px; }
.cf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cf-pill { background: #fff; color: var(--cf-ink); border: 1.5px solid var(--cf-chip); font-family: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.cf-pill:hover { border-color: var(--cf-ink); }
.cf-pill[aria-pressed="true"] { background: var(--cf-ink); color: #fff; border-color: var(--cf-ink); }
.cf-model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cf-model { border: 1px solid var(--cf-line-2); display: flex; flex-direction: column; }
.cf-model[hidden] { display: none; }
.cf-model-img { height: 200px; background: var(--cf-tile); display: flex; align-items: center; justify-content: center; padding: 20px 40px; box-sizing: border-box; }
.cf-model-img svg, .cf-model-img img { width: 100%; height: 100%; object-fit: contain; }
/* Canon photos are shot on white: blend the white into the tile color. */
.cf-model-img img { mix-blend-mode: multiply; }
.cf-model-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.cf-model-body .cf-family { font-size: 12px; margin: 0; }
.cf-model-name { margin: 0; font-size: 21px; font-weight: 800; }
ul.cf-tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cf-tags li { font-size: 13px; font-weight: 600; background: var(--cf-tile); padding: 5px 10px; }
.cf-specs { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.cf-specs dt { color: var(--cf-body); }
.cf-specs dd { margin: 0; font-weight: 600; }
.cf-model-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: auto; padding-top: 14px; }
.cf-model-actions .cf-textlink { font-size: 15px; font-weight: 600; padding: 0; }
.cf-addons-h { margin-bottom: clamp(28px, 4vw, 40px); font-size: clamp(28px, 3.4vw, 40px); }
.cf-addons { display: flex; flex-wrap: wrap; gap: 20px; }
.cf-addons .cf-card { flex: 1 1 400px; min-width: 0; padding: clamp(24px, 3vw, 36px); }
.cf-addons .cf-family { font-size: 12px; margin: 4px 0 0; }
.cf-addons h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.cf-addons .cf-textlink { margin-top: auto; }

/* Inner pages: shared */
.cf-page-hero { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 64px); }
.cf-page-hero .cf-h1 { font-size: clamp(32px, 4.6vw, 56px); }
.cf-section-h { margin-bottom: clamp(28px, 4vw, 44px); }
.cf-section-h .cf-h2 { margin-bottom: 12px; }
.cf-section-h .cf-text { margin: 0; max-width: 720px; }
.cf-card .cf-small + .cf-textlink { margin-top: auto; }
.cf-cards3.cf-on-white .cf-card { background: var(--cf-band); }
ul.cf-checklist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; }
.cf-checklist li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.5; color: var(--cf-body); }
.cf-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--cf-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cf-cta-band { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.cf-cta-band h2 { margin: 0; font-family: var(--cf-exa); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 680px; }
.cf-prose { max-width: 760px; }
.cf-prose p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: var(--cf-body); }
.cf-driver-lead { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--cf-body); }
.cf-driver-lead strong { color: var(--cf-ink); }
.cf-driver-finder { display: flex; flex-direction: column; gap: 8px; }
.cf-drivers { border: 1px solid var(--cf-line-2); background: #fff; }
.cf-drivers summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 17px; color: var(--cf-ink); min-height: 24px; }
.cf-drivers summary:focus-visible { outline: 3px solid var(--cf-ink); outline-offset: 2px; }
.cf-drivers[open] summary { border-bottom: 1px solid var(--cf-line-2); }
.cf-drivers ul { margin: 0; padding: 4px 18px 10px; list-style: none; }
.cf-drivers li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--cf-line); font-size: 15px; }
.cf-drivers li:last-child { border-bottom: 0; }
.cf-driver-name { color: var(--cf-ink); }
.cf-driver-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cf-driver-links a { color: var(--cf-ink); font-weight: 700; text-underline-offset: 3px; display: inline-block; min-height: 24px; }
.cf-driver-more { margin: 16px 0 0; font-size: 16px; color: var(--cf-body); }
.cf-driver-more a { color: var(--cf-ink); font-weight: 700; text-underline-offset: 3px; }
.cf-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cf-info { background: var(--cf-band); padding: 24px; }
.cf-info p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cf-body); }
.cf-info .cf-family { margin-bottom: 8px; font-size: 12px; }
.cf-info a { color: var(--cf-ink); font-weight: 700; font-size: 20px; text-underline-offset: 3px; }
.cf-info address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--cf-body); }

/* Support hub */
.cf-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cf-hub a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--cf-line-2); color: var(--cf-ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.cf-hub a:hover { border-color: var(--cf-ink); }
.cf-hub svg { flex-shrink: 0; }
.cf-support-sec { border-top: 1px solid var(--cf-line); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 6vw, 80px); }
.cf-support-sec > .cf-support-intro { flex: 1 1 300px; min-width: 0; }
.cf-support-sec > .cf-support-body { flex: 2 1 480px; min-width: 0; }
.cf-support-intro h2 { margin: 0 0 12px; font-family: var(--cf-exa); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.cf-support-intro p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--cf-body); }

/* Forms (local preview: not connected yet) */
.cf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cf-form .cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-form .cf-wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .cf-form { grid-template-columns: 1fr; } }
.cf-form label, .cf-form legend { font-size: 15px; font-weight: 700; color: var(--cf-ink); }
.cf-form .cf-req { color: var(--cf-red-deep); }
.cf-form .cf-hint { font-size: 14px; color: var(--cf-body); font-weight: 400; }
.cf-form input[type=text], .cf-form input[type=email], .cf-form input[type=tel], .cf-form input[type=date], .cf-form input[type=number], .cf-form select, .cf-form textarea {
	font: inherit; font-size: 16px; color: var(--cf-ink); background: #fff; border: 1.5px solid #8A8B8E; border-radius: 0; padding: 11px 12px; min-height: 48px; box-sizing: border-box; width: 100%;
}
.cf-form textarea { min-height: 120px; resize: vertical; }
.cf-form .cf-label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cf-form .cf-na { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--cf-body); }
.cf-form .cf-na input { width: 18px; height: 18px; margin: 0; accent-color: var(--cf-btn); }
.cf-form input:disabled { background: var(--cf-band); border-color: var(--cf-line-2); color: var(--cf-muted); cursor: not-allowed; }
.cf-form input:focus-visible, .cf-form select:focus-visible, .cf-form textarea:focus-visible { outline: 3px solid var(--cf-ink); outline-offset: 1px; }
.cf-form [aria-invalid=true] { border-color: var(--cf-red-deep); }
.cf-form .cf-error { font-size: 14px; color: var(--cf-red-deep); font-weight: 600; }
.cf-form .cf-error:empty { display: none; }
.cf-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cf-form fieldset legend { width: 100%; margin-bottom: 6px; padding: 0; }
.cf-form .cf-choice { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; min-height: 44px; }
.cf-form .cf-choice input { width: 20px; height: 20px; accent-color: var(--cf-btn); }
.cf-form button[type=submit] { justify-self: start; font: inherit; font-weight: 800; font-size: 18px; background: var(--cf-btn); color: #fff; border: 0; padding: 14px 26px; cursor: pointer; }
.cf-form button[type=submit]:hover { background: #B8141F; }
.cf-form .cf-status { grid-column: 1 / -1; margin: 0; font-size: 16px; }
.cf-form .cf-status:not(:empty) { background: var(--cf-band); border-left: 0; padding: 14px 16px; }
.cf-form-note { margin: 0 0 20px; font-size: 14px; color: var(--cf-muted); }
.cf-media-flush { padding: 0; overflow: hidden; }
.cf-chips-white li { background: #fff; }
.cf-h2-cat .cf-standin { margin-left: 10px; font-size: 11px; font-weight: 400; letter-spacing: 0.04em; vertical-align: middle; }
.cf-form-wrap { max-width: 820px; }
.cf-support-sec.cf-no-rule { border-top: 0; }
.cf-member-row { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cf-member-row .cf-standin { padding: 8px 12px; }
.cf-prose .cf-h2 { margin-bottom: 24px; }
.cf-hub-wrap { margin-top: 8px; }
.cf-hub-h { margin: 32px 0 14px; font-family: var(--cf-exa); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cf-muted); }
.cf-hub-wrap .cf-hub-h:first-child { margin-top: 0; }
.cf-hub-primary { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cf-hub-primary a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px; background: var(--cf-band); border-color: var(--cf-band); }
.cf-hub-primary a:hover { border-color: var(--cf-ink); }
.cf-hub-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; margin-bottom: 6px; }
.cf-hub-title { font-family: var(--cf-exa); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cf-hub-desc { font-size: 16px; font-weight: 400; color: var(--cf-body); }
.cf-remote { background: var(--cf-band); }
.cf-remote iframe { display: block; width: 100%; height: 420px; border: 0; }
ol.cf-steps-list { margin: 8px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--cf-body); }
.cf-steps-list li { margin-bottom: 10px; padding-left: 4px; }
.cf-steps-list a { color: var(--cf-ink); font-weight: 700; }
.cf-support-body .cf-textlink { margin-top: 12px; }

/* Support guides */
.cf-guide { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); max-width: 860px; }
.cf-guide .cf-h1 { font-size: clamp(30px, 4vw, 48px); }
.cf-guide .cf-lead { max-width: none; margin-bottom: 8px; }
.cf-guide-h { margin: 40px 0 16px; font-family: var(--cf-exa); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; }
.cf-guide .cf-text { margin-bottom: 16px; }
ol.cf-guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: cf-step; }
.cf-guide-steps li { counter-increment: cf-step; position: relative; padding: 4px 0 18px 52px; font-size: 18px; line-height: 1.6; color: var(--cf-body); }
.cf-guide-steps li::before { content: counter(cf-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--cf-band); color: var(--cf-red-deep); font-family: var(--cf-exa); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
ul.cf-guide-list { margin: 0; padding-left: 22px; }
.cf-guide-list li { margin-bottom: 10px; font-size: 18px; line-height: 1.6; color: var(--cf-body); }
.cf-guide li strong { color: var(--cf-ink); }
.cf-guide a { color: var(--cf-ink); font-weight: 600; text-underline-offset: 3px; }
.cf-guide-note { margin: 32px 0 0; padding: 16px 18px; background: var(--cf-band); font-size: 15px; line-height: 1.6; color: var(--cf-body); }
.cf-guide-help { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--cf-line); }
.cf-guide-help h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.cf-guide-help p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cf-body); }

/* Support: guide index */
ul.cf-guide-index { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.cf-guide-index li { border-top: 1px solid var(--cf-line); padding: 14px 0; }
.cf-guide-index a { color: var(--cf-ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.cf-guide-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cf-guide-index span { display: block; margin-top: 2px; font-size: 15px; color: var(--cf-body); }

.cf-draft-banner { margin: 0 0 24px; padding: 12px 16px; border: 1px dashed #B5B6B8; background: #fff; font-family: var(--cf-exa); font-size: 12px; letter-spacing: 0.04em; color: var(--cf-muted); }

/* Repeatable device groups (meter readings) */
.cf-devices { display: flex; flex-direction: column; gap: 16px; }
.cf-form fieldset.cf-device { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; border: 1px solid var(--cf-line-2); padding: 20px; }
@media (max-width: 640px) { .cf-form fieldset.cf-device { grid-template-columns: 1fr; } }
/* Side-by-side fields share label, box and error rows, so the boxes line up even when one label is taller (e.g. Color total's "not applicable" box). */
.cf-form fieldset.cf-device > .cf-field:not(.cf-wide) { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-items: end; }
.cf-form fieldset.cf-device > legend { width: auto; padding: 0 8px; margin: 0; font-family: var(--cf-exa); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--cf-red-deep); }
.cf-add, .cf-remove { font: inherit; font-size: 16px; font-weight: 700; color: var(--cf-ink); background: #fff; border: 1.5px solid var(--cf-ink); padding: 10px 18px; min-height: 44px; cursor: pointer; }
.cf-add:hover, .cf-remove:hover { background: var(--cf-band); }
.cf-remove { justify-self: start; border-color: #8A8B8E; font-weight: 600; font-size: 15px; }

.cf-info a.cf-directions { display: inline-block; margin-top: 8px; font-size: 16px; }

/* Phones: the top bar keeps one line, with remote support (most used) and the phone number.
   Service calls and supplies stay reachable from the menu. */
@media (max-width: 640px) {
	.cf-topbar .cf-hide-phone { display: none; }
	.cf-topbar nav { flex-wrap: nowrap; gap: 0 14px; white-space: nowrap; }
	.cf-topbar .cf-wrap { justify-content: space-between; }
	.cf-topbar nav { width: 100%; justify-content: space-between; }
	.cf-topbar .cf-sep { display: none; }
}

/* Headline font: Plus Jakarta Sans for every large headline (Roger, 2026-10-15).
   Lexend Exa stays on small uppercase labels, echoing the wide logo wordmark. */
.cf-h1, .cf-h2, .cf-h2-sm, .cf-h2-cat, .cf-closing h2, .cf-guide-h, .cf-support-intro h2, .cf-hub-title, .cf-stat-num,
.cf-timeline strong, .cf-cta-band h2, .cf-soft-banner h2 {
	font-family: 'Plus Jakarta Sans', 'Lexend', 'Helvetica Neue', sans-serif; font-weight: 800; letter-spacing: -0.02em;
}

/* Drag-and-drop file field */
.cf-form .cf-label { font-size: 15px; font-weight: 700; color: var(--cf-ink); }

/* Canon Authorized Dealer badge (vector, from Copyfree's business card artwork) */
.cf-badge { display: block; width: 180px; height: auto; }
.cf-badge-lg { width: 240px; }

/* Hero seal: the Canon Authorized Dealer badge sits in the bottom-right corner of the hero picture.
   It is drawn by the container (not part of the picture), so it stays put whatever image or block
   goes inside .cf-hero-media. Decorative here: the trust row already says "Canon Authorized Dealer". */
.cf-hero-media { overflow: hidden; }
.cf-hero-media::after { content: ""; position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 200px; height: 84px; background: rgba(255, 255, 255, 0.75) url(assets/canon-authorized-dealer.svg?v=2) center / 180px auto no-repeat; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(14, 14, 16, 0.05); pointer-events: none; } /* Frosted, so it sits more softly on the photo (Roger, Oct 17). */
.cf-hero-media > figure, .cf-hero-media > .wp-block-image { margin: 0; width: 100%; height: 100%; }
.cf-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
@media (max-width: 480px) { .cf-hero-media::after { width: 152px; height: 64px; background-size: 136px auto; right: 12px; bottom: 12px; } }

.cf-404 .cf-lead { max-width: 640px; }
.cf-404 .cf-guide-index { max-width: 820px; margin-top: 8px; }
@media (max-width: 360px) {
	.cf-topbar { font-size: 13px; }
	.cf-topbar nav { gap: 0 8px; }
	.cf-topbar .cf-phone svg { display: none; }
}
.cf-model-note { margin: -4px 0 0; font-size: 14px; color: var(--cf-body); }

/* Full-width hero (Oct 16): Canon lifestyle photo edge to edge, copy overlaid bottom-left on a soft dark gradient.
   The dealer seal (.cf-hero-media::after) stays bottom-right. On phones the photo stacks above the copy. */
.cf-hero-full { position: relative; padding: 0; display: flex; align-items: center; min-height: clamp(520px, 68vh, 700px); background: var(--cf-ink); overflow: hidden; }
.cf-hero-full .cf-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; height: auto; flex: none; }
.cf-hero-full .cf-hero-media img { object-position: 60% 30%; }
.cf-hero-full .cf-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(to right, var(--cf-ink) 0%, rgba(14, 14, 16, 0.82) 18%, rgba(14, 14, 16, 0) 50%); }
.cf-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.cf-hero-copy { max-width: 540px; color: #fff; }
.cf-hero-full .cf-h1 { color: #fff; text-shadow: 0 1px 24px rgba(14, 14, 16, 0.35); }
.cf-hero-full .cf-h1 mark { color: #FF4655 !important; }
/* "Expert service." always starts its own line (Roger, Oct 16). */
.cf-hero .cf-h1 mark { display: block; }
.cf-hero-full .cf-lead { color: rgba(255, 255, 255, 0.92); }
.cf-hero-full .wp-block-buttons { margin-bottom: 0; }
.cf-hero-full .cf-btn-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: #fff; }
.cf-hero-full .cf-btn-outline > .wp-block-button__link:hover { background: #fff; color: var(--cf-ink); }
.cf-hero-full a:focus-visible { outline-color: #fff; }
.cf-trust-strip { max-width: none; grid-template-columns: repeat(4, auto); justify-content: space-between; border-top: 0; border-bottom: 1px solid var(--cf-line); padding: 22px 0; }
@media (max-width: 860px) { .cf-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.cf-hero-full { display: block; min-height: 0; background: #fff; }
	.cf-hero-full .cf-hero-media { position: relative; width: 100%; height: 300px; }
	.cf-hero-full .cf-hero-media::before { display: none; }
	.cf-hero-full .cf-hero-media img { object-position: 78% 40%; }
	.cf-hero-inner { padding-top: 32px; padding-bottom: 8px; }
	.cf-hero-copy { color: var(--cf-ink); }
	.cf-hero-full .cf-h1 { color: var(--cf-ink); text-shadow: none; }
	.cf-hero-full .cf-h1 mark { color: var(--cf-red) !important; }
	.cf-hero-full .cf-lead { color: var(--cf-body); }
	.cf-hero-full .cf-btn-outline > .wp-block-button__link { color: var(--cf-ink); border-color: var(--cf-ink); }
	.cf-hero-full a:focus-visible { outline-color: var(--cf-ink); }
}

/* Canon photos in category media boxes and home tiles (shot on white: blend into the tile). */
.cf-media img.cf-photo, .cf-tile-img img.cf-photo { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cf-logo-h { line-height: 0; }
.cf-logo-uniflow { display: block; height: auto; width: 140px; }
.cf-h2-cat .cf-logo-uniflow { width: 168px; }
