/*
 * O2O blocks: maps WordPress block markup onto the O2O design (site.css).
 * Loaded on the site and inside the editor so both look the same.
 */

/* ---------- Resets for block markup ---------- */
:where(.o2o-sec) :where(p, h1, h2, h3, h4, h5, ul, ol, figure, blockquote) { margin: 0; }
:where(.o2o-sec) :where(.wp-block-image) { margin: 0; }
.o2o-sec { position: relative; }
.o2o-sec .o2o-b { min-width: 0; }
.o2o-sec .is-layout-constrained > :not(.wrap) { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.o2o-sec .is-layout-flex { gap: 14px; }
.o2o-sec h2:not([class*="h"]) { font-family: var(--title); font-weight: 800; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.025em; }
.o2o-sec h3:not([class*="h"]) { font-family: var(--title); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
mark.has-inline-color { padding: 0; }
.story .big mark, mark.o2o-hl { padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Loose blocks placed between sections read as normal text. */
.o2o-blocks > :not(.o2o-sec):not(.o2o-b) { max-width: 760px; margin: 1.2em auto; padding-inline: var(--gut); font-size: 18px; line-height: 1.65; }
.o2o-blocks > h2:not(.o2o-sec) { font-family: var(--title); font-weight: 800; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; }

/* ---------- Palette colors double as each card's accent (--c) ---------- */
:where(.stat, .tl, .rcard, .pstep, .value, .bignum) { --c: var(--lime); }
.has-lime-background-color { --c: var(--lime); }
.has-lavender-background-color { --c: var(--lav); }
.has-sky-background-color { --c: var(--sky); }
.has-purple-background-color { --c: var(--violet); }
.has-royal-background-color { --c: var(--royal); }
.has-black-background-color { --c: #000; }
.has-white-background-color { --c: #fff; }
.has-smoke-background-color { --c: var(--smoke); }
/* On these, the color is an accent (bar, dot, shadow), not a fill. */
:is(.stat, .bignum, .tl, .split, .split-media, .split-body, .o2o-accent).has-background { background-color: transparent !important; }
:is(.pstep, .value, .rcard, .aside, .item, .step).has-background { background-color: #fff !important; }
.split-body .tag { background: var(--c, var(--lime)); }
.split.has-purple-background-color .split-body .tag, .split.has-royal-background-color .split-body .tag, .split.has-black-background-color .split-body .tag { color: #fff; }

/* Section backgrounds */
.o2o-sec:is(.has-black-background-color, .has-purple-background-color, .has-royal-background-color) .sec-head .is-style-o2o-eyebrow { color: var(--lime); }
.o2o-sec:is(.has-lime-background-color, .has-sky-background-color, .has-lavender-background-color) .sec-head .is-style-o2o-eyebrow { color: var(--ink); }
.o2o-sec.sec.has-background { background-color: var(--c); }

/* ---------- Text styles ---------- */
.is-style-o2o-eyebrow { font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.is-style-o2o-lede { font-size: clamp(18px, 1.45vw, 22px); max-width: 680px; }
h1.is-style-o2o-display, h2.is-style-o2o-display { font-family: var(--hello); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .95; }
.more a, .link-w a { text-decoration: none; color: inherit; }
.fit strong { font-family: var(--title); }
.inline-link, .o2o-sec p a:not(.wp-block-button__link) { text-underline-offset: 3px; }
.small-note { font-size: 16px; }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--title); font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none;
	border-radius: 999px; padding: 15px 30px; min-height: 56px; border: 3px solid var(--ink);
	background: var(--ink); color: var(--lime);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wp-block-button .wp-block-button__link::after { content: "\2192"; display: inline-block; transition: transform .2s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--violet); }
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-o2o-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.wp-block-button.is-style-o2o-outline .wp-block-button__link::after { content: none; }
.wp-block-button.is-style-o2o-lime .wp-block-button__link { background: var(--lime); color: var(--ink); }
.wp-block-button.is-style-o2o-white .wp-block-button__link { background: #fff; color: var(--ink); border-color: #fff; }
.o2o-sec:is(.has-purple-background-color, .has-royal-background-color, .has-black-background-color) .wp-block-button:not([class*="is-style"]) .wp-block-button__link { border-color: #fff; }
.o2o-sec:is(.has-purple-background-color, .has-black-background-color) .wp-block-button .wp-block-button__link:hover { box-shadow: 5px 5px 0 var(--lime); }
@media (max-width: 560px) { .cta-row .wp-block-button { flex: 1 1 100%; } .cta-row .wp-block-button__link { width: 100%; } }

/* ---------- Lists ---------- */
ul.is-style-o2o-checks, ol.is-style-o2o-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.is-style-o2o-checks li { position: relative; padding-left: 36px; font-size: 17px; }
.is-style-o2o-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--lime)); border: 2px solid var(--ink); }
.is-style-o2o-checks li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
ol.is-style-o2o-steps, ul.is-style-o2o-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: o2o; }
.is-style-o2o-steps li { display: flex; align-items: center; gap: 16px; font-family: var(--title); font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); counter-increment: o2o; }
.is-style-o2o-steps li::before { content: counter(o2o); flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--hello); font-weight: 400; font-size: 28px; background: var(--lav); color: var(--ink); }
.is-style-o2o-steps li:nth-child(3n+2)::before { background: var(--sky); }
.is-style-o2o-steps li:nth-child(3n)::before { background: var(--lime); }
ul.is-style-o2o-chips, ol.is-style-o2o-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.is-style-o2o-chips li { font-family: var(--title); font-weight: 800; font-size: clamp(16px, 1.4vw, 20px); border: 3px solid var(--ink); border-radius: 999px; padding: 12px 22px; background: #fff; color: var(--ink); transition: background .2s ease, transform .2s ease; }
.is-style-o2o-chips li:hover { background: var(--lime); transform: rotate(-2deg); }

/* ---------- Rings (decorations) ---------- */
.phero::before, .phero::after, .voices::before, .talk::before, .ctaband::before, .collage::before, .collage::after, .rcard .cover::before, .split-media.ring-lime::after, .split-media.ring-blue::after {
	content: ""; position: absolute; aspect-ratio: 1; background: url(../img/ring_lime.svg) center / contain no-repeat; pointer-events: none;
}
.phero { isolation: isolate; }
.phero::before { right: -60px; top: -50px; width: clamp(180px, 24vw, 340px); animation: spin 30s linear infinite; z-index: 0; }
.phero::after { right: clamp(120px, 20vw, 360px); bottom: -70px; width: clamp(110px, 12vw, 190px); background-image: url(../img/ring_blue.svg); animation: spin 22s linear infinite reverse; z-index: 0; }
.phero.has-lime-background-color::before { background-image: url(../img/ring_blue.svg); }
.phero.has-sky-background-color::after, .phero.has-lime-background-color::after { display: none; }
.phero.has-sky-background-color, .phero.has-lime-background-color, .phero.has-lavender-background-color { --acc: var(--violet); }
.phero.has-sky-background-color { --acc: #000; }
.phero .wrap > * { position: relative; }
.voices::before { right: -120px; top: -120px; width: 360px; opacity: .9; background-image: url(../img/ring_blue.svg); animation: spin 40s linear infinite; }
.talk::before { left: -120px; bottom: -130px; width: 400px; animation: spin 36s linear infinite; }
.ctaband::before { right: -80px; bottom: -110px; width: 300px; background-image: url(../img/ring_blue.svg); animation: spin 30s linear infinite; }
.split-media.ring-lime::after, .split-media.ring-blue::after { width: 32%; right: -6%; top: -10%; animation: spin 26s linear infinite; z-index: 1; }
.split-media.ring-blue::after { background-image: url(../img/ring_blue.svg); }
@media (max-width: 700px) {
	.phero::before { width: 120px; right: -44px; top: -44px; }
	.phero::after { display: none; }
	.split-media.ring-lime::after, .split-media.ring-blue::after { width: 26%; right: -3%; top: -6%; }
}

/* ---------- Home hero ---------- */
.hero-copy > .is-style-o2o-eyebrow.chip { align-self: flex-start; }
.hero .stats .stat .num { margin: 0; }
.collage > figure { position: absolute; margin: 0; }
.collage > figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage > figure.c-tall, .collage > figure.c-circle { overflow: hidden; }
.collage > figure.c-circle img { object-position: 55% 40%; }
.collage > figure.c-tall img { object-position: center 20%; }
.collage::before { left: -8%; top: 0; width: 48%; animation: spin 28s linear infinite; }
.collage::after { right: -8%; bottom: 6%; width: 33%; background-image: url(../img/ring_blue.svg); animation: spin 22s linear infinite reverse; z-index: 2; }
.collage > .lead { position: absolute; }

/* ---------- Numbers ---------- */
.bignum .num { display: block; font-family: var(--hello); font-weight: 400; font-size: clamp(28px, 2.8vw, 44px); line-height: 1; }
.bignum .lbl { font-family: var(--title); font-weight: 700; font-size: 13.5px; line-height: 1.3; display: block; margin-top: 6px; }
.stat .num, .bignum .num { font-variant-numeric: tabular-nums; }

/* ---------- How it works steps ---------- */
.step > .media { margin: 0; }
.step figure.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.step:hover figure.media img { transform: scale(1.06); }
.o2o-b-ad-mockup { height: clamp(240px, 22vw, 320px); display: flex; }
.o2o-b-ad-mockup > .phone-wrap { flex: 1; height: 100%; }
.step .o2o-b-ad-mockup { height: clamp(220px, 20vw, 300px); }
@media (max-width: 900px) { .step .o2o-b-ad-mockup { height: auto; min-height: 190px; } }

/* ---------- Service cards ---------- */
.card { --bg: var(--c, #fff); }
.card.has-black-background-color h3, .card.has-black-background-color .more, .card.has-purple-background-color h3, .card.has-purple-background-color .more { color: var(--lime); }
.card.has-black-background-color:hover, .card.has-purple-background-color:hover { box-shadow: 10px 10px 0 var(--violet); }
.card.has-purple-background-color:hover { box-shadow: 10px 10px 0 var(--ink); }
.card .o2o-b-icon { line-height: 0; }
.ico svg { width: 28px; height: 28px; }
.o2o-b-icon .ico { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ---------- Photo strip (Gallery, "Scrolling photo strip" style) ---------- */
.wp-block-gallery.is-style-o2o-reel { display: flex; flex-wrap: nowrap !important; gap: 0 !important; overflow: hidden; background: var(--ink); margin: 0; }
.wp-block-gallery.is-style-o2o-reel .wp-block-image { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
.wp-block-gallery.is-style-o2o-reel .wp-block-image img { height: clamp(220px, 24vw, 340px) !important; width: auto !important; max-width: none; object-fit: cover; }
.wp-block-gallery.is-style-o2o-reel figcaption { display: none; }
.wp-block-gallery.is-style-o2o-reel.is-running { display: block; }
.wp-block-gallery.is-style-o2o-reel .marquee { gap: 0; --dur: 60s; }

/* ---------- Split rows ---------- */
.split-media > figure { margin: 0; }
.split-media > figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--c, var(--ink)); }
.split-body > .wp-block-buttons { margin-top: 4px; }
.split-body .more { align-self: flex-start; font-family: var(--title); font-weight: 800; border-bottom: 3px solid var(--ink); }

/* ---------- About ---------- */
.value::before { content: ""; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; background: var(--c, var(--lime)); border: 3px solid var(--ink); }
.tl.has-background { border-top-color: var(--c); }

/* ---------- Resources ---------- */
.rcard .cover::before { right: -30px; top: -30px; width: 44%; background-image: url(../img/ring_blue.svg); animation: spin 20s linear infinite; }
.rcard.has-sky-background-color .cover::before { background-image: url(../img/ring_lime.svg); }
.rcard .body > .wp-block-buttons { margin-top: auto; }
.aside .an-heading, .aside h3 { font-size: 24px; }
.cat2 .item .more { margin-top: auto; align-self: flex-start; font-family: var(--title); font-weight: 800; border-bottom: 3px solid var(--ink); }

/* ---------- Forms ---------- */
.an-note { margin: 0 0 12px; }
.o2o-b-an-form .an-heading { margin-bottom: 12px; }
.magnet .left .o2o-b-an-form { margin-top: 4px; }
.o2o-b-deck-card { display: flex; justify-content: center; }
.talk .left > .h3 { margin-top: 12px; }

/* ---------- Pathway (interactive) ---------- */
.pw { --n: 6; color: var(--ink); }
.pw-steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: #fff; border: 4px solid var(--ink); border-radius: 28px 28px 0 0; overflow: hidden; }
.pw-step { appearance: none; background: #fff; border: 0; border-right: 3px solid var(--ink); text-align: left; padding: 22px 18px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-height: 150px; color: var(--ink); font: inherit; transition: background .25s ease; }
.pw-step:last-of-type { border-right: 0; }
.pw-step:hover { background: var(--smoke); }
.pw-step[aria-selected="true"] { background: var(--lime); }
.pw-step .n { font-family: var(--hello); font-size: 34px; line-height: 1; color: var(--violet); }
.pw-step[aria-selected="true"] .n { color: var(--ink); }
.pw-step .t { font-family: var(--title); font-weight: 800; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.15; }
.pw-step .m { margin-top: auto; font-family: var(--title); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.pw-prog { position: absolute; left: 0; bottom: 0; height: 6px; width: var(--p, 16%); background: var(--violet); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pw-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 28px 28px; overflow: hidden; min-height: 360px; box-shadow: 12px 12px 0 var(--violet); }
.pw-txt { padding: clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; gap: 16px; }
.pw-k { font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.pw-txt h3 { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(28px, 3vw, 46px); line-height: 1.02; letter-spacing: -.03em; }
.pw-txt p { margin: 0; font-size: 18px; max-width: 560px; }
.pw-stat { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: 16px; margin-top: auto; }
.pw-stat b { font-family: var(--hello); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; color: var(--violet); }
.pw-stat span { font-family: var(--title); font-weight: 700; font-size: 15px; }
.pw-vis { position: relative; background: var(--lav); border-left: 4px solid var(--ink); overflow: hidden; display: grid; place-items: end center; padding: 26px 26px 0; min-height: 300px; }
.pw-vis .pw-phone { width: min(250px, 80%); height: auto; min-height: 280px; animation: phoneup .7s cubic-bezier(.2, .8, .2, 1) both; font-size: 12px; }
.pw-vis .pw-phone img { height: 110px; }
.pw-phone .pf-t { font-family: var(--title); font-size: 14px; }
.pw-phone .pf-s { color: #555; margin: 2px 0 6px; }
.pw-phone .pf { border: 1px solid #ccc; border-radius: 6px; padding: 8px; color: #555; }
.pw-phone .pf b { color: #111; }
.pw-phone .pf-go { background: var(--royal); color: #fff; text-align: center; border-radius: 6px; padding: 9px; font-weight: 700; margin-top: 2px; }
.pw-chat { justify-content: flex-start; padding-top: 18px !important; }
.pw-chat .bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; }
.pw-chat .bub.o { background: #e9e9ee; border-bottom-left-radius: 4px; align-self: flex-start; }
.pw-chat .bub.m { background: var(--royal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pw-vis .pw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-card { position: relative; align-self: end; justify-self: start; margin-bottom: 22px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: 6px 6px 0 var(--ink); }
.pw-card span { display: block; font-family: var(--title); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.pw-card b { display: block; font-family: var(--title); font-weight: 800; font-size: 18px; }
.pw-fade { animation: pwfade .5s ease both; }
@keyframes pwfade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pw-ctl { display: flex; gap: 12px; align-items: center; margin-top: 24px; font-family: var(--title); font-weight: 700; font-size: 14px; }
.pw-play { width: 46px; height: 46px; border-radius: 50%; border: 3px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.pw-play svg { fill: currentColor; }
.o2o-sec:is(.has-black-background-color, .has-purple-background-color) .pw-ctl { color: #fff; }
@media (max-width: 1000px) {
	.pw-steps { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pw-step { border-bottom: 3px solid var(--ink); min-height: 120px; }
	.pw-step:nth-of-type(3n) { border-right: 0; }
	.pw-panel { grid-template-columns: 1fr; }
	.pw-vis { border-left: 0; border-top: 4px solid var(--ink); }
}
@media (max-width: 520px) {
	.pw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pw-step:nth-of-type(3n) { border-right: 3px solid var(--ink); }
	.pw-step:nth-of-type(2n) { border-right: 0; }
	.pw-step .n { font-size: 26px; }
	.pw-panel { box-shadow: 6px 6px 0 var(--violet); }
}

/* ---------- Campaign calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 14px 14px 0 var(--lime); }
.calc-in { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 28px; margin: 0; }
.calc .ctl > label, .calc .ctl > legend { display: flex; justify-content: space-between; gap: 12px; font-family: var(--title); font-weight: 800; font-size: 15px; margin: 0 0 12px; padding: 0; width: 100%; }
.calc .ctl output { font-family: var(--hello); font-size: 26px; line-height: 1; color: var(--violet); }
.calc input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: var(--ink); outline: none; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); cursor: pointer; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); cursor: pointer; }
.calc .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.calc .seg label { margin: 0; display: block; cursor: pointer; position: relative; }
.calc .seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc .seg span { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; min-height: 52px; padding: 6px 8px; font-family: var(--title); font-weight: 700; font-size: 13.5px; line-height: 1.2; border-right: 3px solid var(--ink); transition: background .2s ease, color .2s ease; }
.calc .seg label:last-child span { border-right: 0; }
.calc .seg input:checked + span { background: var(--ink); color: var(--lime); }
.calc .seg input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: -3px; }
.calc .fine { text-align: left; }
.calc-out { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; background: var(--smoke); border-left: 4px solid var(--ink); }
.calc-out .eyebrow { color: var(--violet); }
.calc .fr { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 110px); gap: 14px; align-items: center; }
.calc .fr .k { font-family: var(--title); font-weight: 700; font-size: 14px; }
.calc .fr .bar { height: 38px; background: #e2e2dc; border-radius: 10px; position: relative; overflow: hidden; }
.calc .fr .bar i { position: absolute; inset: 0 auto 0 0; background: var(--c); width: var(--w, 2%); border-right: 3px solid var(--ink); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.calc .fr .v { font-family: var(--hello); font-size: 30px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.calc .callout { margin: 6px 0 0; border-left: 5px solid var(--violet); padding: 6px 0 6px 16px; font-size: 17px; }
.calc .callout b { font-family: var(--title); color: var(--violet); }
.calc-out .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-out { border-left: 0; border-top: 4px solid var(--ink); } }
@media (max-width: 520px) { .calc { box-shadow: 8px 8px 0 var(--lime); } .calc .fr { grid-template-columns: minmax(0, 1fr) minmax(0, 90px); } .calc .fr .bar { grid-column: 1 / -1; grid-row: 2; height: 24px; } .calc .fr .v { font-size: 24px; } .calc .seg span { font-size: 12px; } }

/* ---------- Fit check quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; min-height: 440px; box-shadow: 14px 14px 0 var(--ink); }
.qside { padding: clamp(24px, 3.5vw, 52px); background: var(--violet); color: #fff; border-right: 4px solid var(--ink); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.qside::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; aspect-ratio: 1; background: url(../img/ring_lime.svg) center / contain no-repeat; animation: spin 30s linear infinite; }
.qside .eyebrow { color: var(--lime); }
.qside h3 { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(30px, 3.4vw, 54px); line-height: .98; letter-spacing: -.035em; }
.qside p { margin: 0; font-size: 18px; }
.qdots { display: flex; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.qdots i { width: 40px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .3); }
.qdots i.on { background: var(--lime); }
.qmain { padding: clamp(24px, 3.5vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.qmain .qk { font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.qmain .q { font-family: var(--title); font-weight: 800; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; margin: 0; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opt { appearance: none; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; text-align: left; padding: 14px 18px; cursor: pointer; font-family: var(--body); font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 58px; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.quiz .opt:hover { background: var(--lime); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); }
.quiz .opt .ar { font-family: var(--title); font-weight: 800; }
.quiz .rec { display: flex; flex-direction: column; gap: 14px; }
.quiz .rec .tag { align-self: flex-start; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-family: var(--title); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.quiz .rec h4 { margin: 0; font-family: var(--title); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.04; letter-spacing: -.03em; }
.quiz .rec p { margin: 0; font-size: 17px; }
.quiz .rec .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.quiz .linkbtn { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 15px; align-self: flex-start; padding: 6px 0; font-family: var(--body); }
.quiz .fade { animation: pwfade .45s ease both; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } .qside { border-right: 0; border-bottom: 4px solid var(--ink); } .qdots { margin-top: 8px; } }
@media (max-width: 520px) { .quiz { box-shadow: 8px 8px 0 var(--ink); } }

/* ---------- Editor helpers (placeholders shown only while editing) ---------- */
.o2o-empty { padding: 24px; border: 3px dashed #999; border-radius: 18px; font-family: var(--title); font-weight: 700; color: #666; background: #fafafa; }
.an-placeholder { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 3px dashed var(--ink); border-radius: 18px; background: #fff; color: var(--ink); }
.an-placeholder b { font-family: var(--title); text-transform: capitalize; }
.an-placeholder small { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.is-style-o2o-reel { overflow-x: auto; }
}
.row-head .sec-head { margin: 0; }
/* Small labels keep their size inside sections that size all paragraphs. */
.o2o-sec p.is-style-o2o-eyebrow { font-size: 13px; line-height: 1.4; }
.o2o-sec p.is-style-o2o-eyebrow.tag, .o2o-sec p.is-style-o2o-eyebrow.tagb, .o2o-sec p.is-style-o2o-eyebrow.chip { font-size: 13px; }
.qside > * { position: relative; z-index: 1; }
@media (max-width: 900px) { .qside::after { width: 120px; right: -44px; bottom: -44px; } }
@media (max-width: 520px) { .calc .fr { grid-template-columns: minmax(0, 1fr) auto; } .calc .fr .v { font-size: 22px; } }

/* ---------- Email pop-up ---------- */
.o2o-pop { padding: 0; border: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.o2o-pop::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); }
.o2o-pop[open] { animation: popin .45s cubic-bezier(.2, .8, .2, 1) both; }
.o2o-pop[open]::backdrop { animation: popfade .3s ease both; }
@keyframes popin { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popfade { from { opacity: 0; } to { opacity: 1; } }
.o2o-pop-card { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--lime); overflow: hidden; max-height: calc(100dvh - 44px); display: flex; flex-direction: column; }
.o2o-pop-top { position: relative; background: var(--violet); color: #fff; padding: 30px 30px 26px; border-bottom: 4px solid var(--ink); overflow: hidden; flex: 0 0 auto; }
.o2o-pop-top::after { content: ""; position: absolute; right: -54px; top: -54px; width: 160px; aspect-ratio: 1; background: url(../img/ring_lime.svg) center / contain no-repeat; animation: spin 26s linear infinite; }
.o2o-pop-top > * { position: relative; z-index: 1; }
.o2o-pop-k { margin: 0 0 10px; font-family: var(--title); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.o2o-pop-h { margin: 0; max-width: 17ch; font-family: var(--title); font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1.02; letter-spacing: -.03em; }
.o2o-pop-p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; max-width: 44ch; }
.o2o-pop-body { padding: 22px 30px 18px; overflow-y: auto; flex: 1 1 auto; }
.o2o-pop-form { min-height: 120px; }
.o2o-pop-wait { margin: 0; padding: 30px 0; text-align: center; font-family: var(--title); font-weight: 700; color: var(--muted); }
.o2o-pop-no { display: block; margin: 10px auto 0; background: none; border: 0; padding: 8px; font-family: var(--body); font-size: 15px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.o2o-pop-x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.o2o-pop-x:hover { background: var(--lime); transform: rotate(90deg); }
/* Action Network's form, tightened for the pop-up */
.o2o-pop .an-embed #can_embed_form h2, .o2o-pop .an-embed #can_embed_form h4 { display: none !important; }
.o2o-pop .an-embed #can_embed_form #form_col1, .o2o-pop .an-embed #can_embed_form #form_col2 { width: 100% !important; float: none !important; }
.o2o-pop .an-embed #can_embed_form li { margin-bottom: 10px !important; }
.o2o-pop .an-embed #can_embed_form .can_select, .o2o-pop .an-embed #can_embed_form input[type=submit] { width: 100% !important; }
@media (max-width: 560px) {
	.o2o-pop { max-width: 100vw; margin: auto 0 0; max-height: 92dvh; }
	.o2o-pop-card { border-radius: 24px 24px 0 0; border-bottom: 0; box-shadow: none; max-height: 92dvh; }
	.o2o-pop[open] { animation-name: popup-sheet; }
	.o2o-pop-top { padding: 24px 22px 20px; }
	.o2o-pop-body { padding: 18px 22px 16px; }
}
@keyframes popup-sheet { from { transform: translateY(100%); } to { transform: none; } }
html.o2o-pop-open { overflow: hidden; }
.o2o-pop-card:focus { outline: none; }
