/*
 * FTW Digital theme styles.
 * Phase 2: this file becomes the theme's style.css (or is split into
 * per-block stylesheets via wp_enqueue_block_style). It only uses WordPress
 * preset variables, core block classes and ftw-* / is-style-* classes.
 */

:root { --ftw-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a:hover { opacity: .75; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 3px; }

/* ---------- Header ---------- */
.ftw-header { padding-block: 22px; }
.wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.03em; }
.wp-block-site-title a { text-decoration: none; }
/* Wordmark from the Astra draft: heavy lowercase "ftw", accent dot, lighter "digital". */
.ftw-wordmark { display: inline-flex; align-items: baseline; font-size: 2.5rem; font-weight: 850; line-height: 1; letter-spacing: -0.065em; color: inherit; }
.ftw-wordmark__dot { color: var(--wp--preset--color--accent-1); }
.ftw-wordmark__name { margin-left: 0.2em; font-family: var(--wp--preset--font-family--body); font-size: 0.48em; font-weight: 400; letter-spacing: -0.02em; }
.ftw-footer .ftw-wordmark { font-size: 2.25rem; }
@media (max-width: 600px) { .ftw-wordmark { font-size: 2.125rem; } }
/* Hover/focus: "ftw." spells out "for the win." and "digital" folds away. */
.ftw-wordmark__more, .ftw-wordmark__name { display: inline-block; white-space: pre; transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease; }
.ftw-wordmark__more { max-width: 0; opacity: 0; overflow: clip; }
.ftw-wordmark { width: 4.6em; white-space: nowrap; } /* fixed box: the hover swap never moves the menu */
.wp-block-site-title:has(.ftw-wordmark) { flex-shrink: 0; }
.ftw-wordmark__name { max-width: 6em; }
.ftw-wordmark:hover .ftw-wordmark__more, .ftw-wordmark:focus-visible .ftw-wordmark__more { max-width: 2em; opacity: 1; }
.ftw-wordmark:hover .ftw-wordmark__name, .ftw-wordmark:focus-visible .ftw-wordmark__name { max-width: 0; margin-left: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ftw-wordmark__more, .ftw-wordmark__name { transition: none; } }
.site-header .wp-block-navigation__container { list-style: none; margin: 0; padding: 0; gap: 20px; font-weight: 500; }
.wp-block-navigation-item__content { text-decoration: none; }
.wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons (block style variations) ---------- */
.is-style-arrow .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 46px; padding: 0 18px 0 5px;
}
.is-style-arrow .wp-block-button__link::before {
	content: ""; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--contrast);
	transition: transform .2s ease;
}
.is-style-arrow .wp-block-button__link { position: relative; }
.is-style-arrow .wp-block-button__link::after {
	content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	background: var(--wp--preset--color--base);
	-webkit-mask: var(--ftw-arrow) center / contain no-repeat; mask: var(--ftw-arrow) center / contain no-repeat;
	transition: transform .2s ease;
}
.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.is-style-arrow.is-small .wp-block-button__link::after { left: 9px; width: 12px; height: 12px; margin-top: -6px; }
.is-style-arrow .wp-block-button__link:hover::before { transform: translateX(3px); }
.is-style-arrow.is-small .wp-block-button__link { min-height: 44px; padding-left: 0; }
.is-style-arrow.is-small .wp-block-button__link::before { width: 30px; height: 30px; }

.is-style-pill .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px;
	border-radius: var(--wp--preset--spacing--40); background: var(--wp--preset--color--surface);
}
.is-style-pill .wp-block-button__link:hover { background: var(--wp--preset--color--surface-strong); }


/* ---------- Chips (core/list style variation) ---------- */
.is-style-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--wp--preset--spacing--10); font-size: var(--wp--preset--font-size--small); }
.is-style-chips.is-row { flex-direction: row; flex-wrap: wrap; }
.is-style-chips li { padding: 8px 16px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--white); }

/* ---------- Hero ---------- */
.ftw-hero { position: relative; padding-block: 80px 0; }
.ftw-hero > .ftw-kicker { font-size: 0.9375rem; }
.ftw-hero__title { max-width: 11em !important; margin-top: 22px !important; }
.ftw-hero__lead { max-width: 30em !important; }
.ftw-hero .wp-block-buttons { justify-content: center; }

/* Decorative shapes (core/html inside hero + CTA patterns) */
/* Blob outlines (our own paths) — shared by the floating shapes and the icon stickers */
:root {
	--ftw-blob-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M61,7 C67.0,8.0 66.2,22.0 72,28 C77.8,34.0 95.2,37.0 96,43 C96.8,49.0 82.0,56.0 77,64 C72.0,72.0 71.3,88.2 66,91 C60.7,93.8 53.2,82.5 45,81 C36.8,79.5 21.3,86.5 17,82 C12.7,77.5 19.7,63.3 19,54 C18.3,44.7 10.2,31.3 13,26 C15.8,20.7 28.0,25.2 36,22 C44.0,18.8 55.0,6.0 61,7Z'/%3E%3C/svg%3E");
	--ftw-blob-bean: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16,34 C22.0,27.3 35.0,31.3 44,28 C53.0,24.7 62.0,14.3 70,14 C78.0,13.7 88.3,19.3 92,26 C95.7,32.7 95.3,47.3 92,54 C88.7,60.7 78.0,60.7 72,66 C66.0,71.3 63.0,81.7 56,86 C49.0,90.3 38.0,95.0 30,92 C22.0,89.0 10.3,77.7 8,68 C5.7,58.3 10.0,40.7 16,34Z'/%3E%3C/svg%3E");
	--ftw-blob-egg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M46,10 C54.7,8.7 62.7,15.7 70,22 C77.3,28.3 87.7,39.0 90,48 C92.3,57.0 89.3,69.0 84,76 C78.7,83.0 67.3,88.3 58,90 C48.7,91.7 36.0,91.0 28,86 C20.0,81.0 11.7,69.3 10,60 C8.3,50.7 12.0,38.3 18,30 C24.0,21.7 37.3,11.3 46,10Z'/%3E%3C/svg%3E");
	--ftw-blob-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,12 C26.7,9.7 41.3,13.0 52,14 C62.7,15.0 77.3,12.7 84,18 C90.7,23.3 91.3,35.7 92,46 C92.7,56.3 94.0,72.7 88,80 C82.0,87.3 67.0,88.7 56,90 C45.0,91.3 29.7,93.7 22,88 C14.3,82.3 11.7,66.0 10,56 C8.3,46.0 10.3,35.3 12,28 C13.7,20.7 13.3,14.3 20,12Z'/%3E%3C/svg%3E");
}

/* Decorative soft blobs around the hero and CTA text (core/html), one per accent colour, gently floating.
   Each blob picks its outline with --m. */
.ftw-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ftw-hero > :not(.ftw-shapes), .ftw-cta > :not(.ftw-shapes) { position: relative; z-index: 1; }
.ftw-blob {
	--size: 60px; --tilt: -8deg;
	position: absolute; display: block; width: var(--size); height: var(--size);
	-webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
	background: var(--ic-soft); rotate: var(--tilt);
	animation: ftw-bob 6s ease-in-out infinite;
}
@keyframes ftw-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .ftw-blob { animation: none; } }
.ftw-shapes--hero .s1 { left: 6%; top: 64px; --size: 86px; --tilt: -10deg; }
.ftw-shapes--hero .s2 { right: 8%; top: 96px; --size: 76px; --tilt: 9deg; animation-delay: -1.5s; }
.ftw-shapes--hero .s3 { left: 13%; top: 286px; --size: 68px; --tilt: 7deg; animation-delay: -3s; }
.ftw-shapes--hero .s4 { right: 13%; top: 272px; --size: 78px; --tilt: -6deg; animation-delay: -4.5s; }
.ftw-shapes--cta .s1 { left: 15%; top: 70px; --size: 70px; --tilt: -9deg; }
.ftw-shapes--cta .s2 { left: 46%; top: 6px; --size: 60px; --tilt: 6deg; animation-delay: -2s; }
.ftw-shapes--cta .s3 { right: 13%; bottom: 36px; --size: 74px; --tilt: 8deg; animation-delay: -4s; }
.ftw-shapes--hero .s1, .ftw-shapes--cta .s3 { --m: var(--ftw-blob-star); }
.ftw-shapes--hero .s2 { --m: var(--ftw-blob-bean); }
.ftw-shapes--hero .s3, .ftw-shapes--cta .s1 { --m: var(--ftw-blob-egg); }
.ftw-shapes--hero .s4, .ftw-shapes--cta .s2 { --m: var(--ftw-blob-tile); }
/* Below 1024px the headline wraps taller: hero blobs become a small row above the kicker, CTA ones hide */
@media (max-width: 1024px) {
	.ftw-shapes--hero { position: static; display: flex; justify-content: center; gap: 14px; margin-bottom: 4px !important; }
	.ftw-shapes--hero .ftw-blob { position: static; --size: 42px !important; }
	.ftw-shapes--cta { display: none; }
}

/* ---------- Panels ---------- */
.ftw-well { border-radius: var(--wp--custom--radius--panel); padding: var(--wp--preset--spacing--40); }
.ftw-stage { border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.is-layout-constrained > .ftw-stage--hero { max-width: 1120px; } /* a little wider than the text column, as in the design */
.ftw-stage--hero { margin-left: 0; margin-right: 0; margin-bottom: 0; border-radius: var(--wp--custom--radius--panel); padding: 32px 40px 36px; margin-top: var(--wp--preset--spacing--30) !important; }
.ftw-stage--inset { padding: 36px 0 0 36px; min-height: 340px; height: 100%; box-sizing: border-box; display: flex; }

/* ---------- Cards ---------- */
.ftw-cards { gap: var(--wp--preset--spacing--10); }
.ftw-well:has(> .ftw-cards) { padding: var(--wp--preset--spacing--10); }
.ftw-card { border-radius: var(--wp--custom--radius--card); padding: 26px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ftw-card > * { margin: 0; }
.ftw-cards > .ftw-card:has(> .ftw-icon-head) { min-height: 200px; justify-content: flex-end; }

/* ---------- Icons (SVG sprite, bare glyph beside its heading, coloured by accent slot) ---------- */
.ftw-icon--a1 { --ic: var(--wp--preset--color--accent-1); --ic-soft: var(--wp--preset--color--accent-1-soft); }
.ftw-icon--a2 { --ic: var(--wp--preset--color--accent-2); --ic-soft: var(--wp--preset--color--accent-2-soft); }
.ftw-icon--a3 { --ic: var(--wp--preset--color--accent-3); --ic-soft: var(--wp--preset--color--accent-3-soft); }
.ftw-icon--a4 { --ic: var(--wp--preset--color--accent-4); --ic-soft: var(--wp--preset--color--accent-4-soft); }
.ftw-icon-head { gap: 12px; align-items: center; }
.ftw-icon-head > :is(h2, h3) { margin: 0; }
.ftw-icon {
	--size: 44px; --m: var(--ftw-blob-egg);
	position: relative; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: var(--size); height: var(--size);
	color: var(--wp--preset--color--contrast);
	rotate: -6deg; transition: rotate .25s ease, scale .25s ease;
}
/* ::before = strong-colour shadow nudged down-right, ::after = soft fill */
.ftw-icon::before, .ftw-icon::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	-webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.ftw-icon::before { background: var(--ic); translate: 3px 3px; }
.ftw-icon::after { background: var(--ic-soft); }
.ftw-icon.ftw-icon--a1 { --m: var(--ftw-blob-egg); }
.ftw-icon.ftw-icon--a2 { --m: var(--ftw-blob-tile); }
.ftw-icon.ftw-icon--a3 { --m: var(--ftw-blob-star); }
.ftw-icon.ftw-icon--a4 { --m: var(--ftw-blob-bean); }
.ftw-icon svg { width: 50%; height: 50%; display: block; }
.ftw-icon--a3 svg { width: 42%; height: 42%; }
.ftw-feature .ftw-icon { --size: 60px; }
:root[data-palette="arcade"] .ftw-icon { color: #0E0D16; }
.ftw-card:hover .ftw-icon, .ftw-feature:hover .ftw-icon { rotate: 4deg; scale: 1.05; }
@media (prefers-reduced-motion: reduce) { .ftw-icon { transition: none; } }

/* ---------- Logos ---------- */
.ftw-logos { padding-block: var(--wp--preset--spacing--70) 40px; }
.ftw-logos__label { font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; }
.ftw-placeholder { max-width: 760px !important; min-height: 110px; border: 2px dashed var(--wp--preset--color--faint); border-radius: 16px; color: var(--wp--preset--color--subtle); font-size: var(--wp--preset--font-size--small); margin-top: 30px !important; }

/* ---------- Sections ---------- */
.ftw-section { padding-block: var(--wp--preset--spacing--60); }
.ftw-section > h2 { margin-bottom: 12px; }
.ftw-section__title { text-wrap: balance; }
.ftw-section > .ftw-well, .ftw-section > .ftw-feature { margin-top: var(--wp--preset--spacing--40); }
#how > h2 { max-width: 12em; margin-inline: auto; }

/* Feature rows */
.ftw-feature .wp-block-columns { gap: var(--wp--preset--spacing--40); }
.ftw-feature__text { padding: 8px; display: flex; flex-direction: column; }
.ftw-feature__text > * { margin: 0 !important; }
.ftw-feature__text { gap: 18px; }
.ftw-feature__text > p { max-width: 30em; }
.ftw-feature__text > .wp-block-buttons { margin-top: auto !important; }

/* Steps: white cards in the well, each numbered on a blob badge, joined by small arrow
   chips that sit over the gaps (down the page when the columns stack) */
.ftw-well:has(> .ftw-steps) { padding: var(--wp--preset--spacing--10); }
.ftw-steps { gap: var(--wp--preset--spacing--10); }
.ftw-steps > .ftw-step { position: relative; gap: 8px; padding: 24px 24px 28px; overflow: visible; transition: translate .25s ease, box-shadow .25s ease; }
.ftw-steps > .ftw-step:hover { translate: 0 -3px; box-shadow: 0 10px 24px rgba(0, 0, 0, .06); }
.ftw-step__head { justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 18px !important; }
.ftw-step__num.ftw-icon { --size: 52px; margin: 0; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.ftw-step__tag { margin: 0; padding: 5px 10px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); font-size: 0.75rem; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ftw-step__title { margin: 0; }
.ftw-steps > .ftw-step:not(:last-child)::after {
	content: ""; position: absolute; z-index: 2; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line); box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857a70' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 782px) {
	.ftw-steps > .ftw-step:not(:last-child)::after { right: -18px; top: 36px; }
}
@media (max-width: 781px) {
	.ftw-steps > .ftw-step:not(:last-child)::after { left: 50%; bottom: -18px; translate: -50% 0; rotate: 90deg; }
	.ftw-step__head { margin-bottom: 10px !important; }
}
@media (prefers-reduced-motion: reduce) { .ftw-steps > .ftw-step { transition: none; } }

/* Prices */
.ftw-price__amount { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 2.375rem; line-height: 1.2; }

/* Integrations orbit (core/list style variation). Logos sit on white chips in every palette
   (brand colours are fixed), on three rings centred on the bottom of a dome; orbit.js sets each
   one's ring and start angle, and the rings turn by animating --spin. */
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@keyframes ftw-spin { to { --spin: 360deg; } }
.ftw-integrations { text-align: center; }
.ftw-integrations > h2 { max-width: 12em; margin-inline: auto; }
.ftw-integrations > p { max-width: 34em; margin-inline: auto; }
.is-style-orbit {
	--R: min(410px, calc(50vw - 20px)); --chip: 52px; --core: 62px;
	--r0: calc(var(--R) * .34); --r1: calc(var(--R) * .6); --r2: calc(var(--R) * .86); --lift: calc(var(--R) * .14);
	list-style: none; padding: 0; box-sizing: border-box; position: relative; overflow: hidden;
	width: 100%; max-width: calc(var(--R) * 2); margin: var(--wp--preset--spacing--40) auto 0 !important;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.is-style-orbit li { display: grid; place-items: center; width: var(--chip); height: var(--chip); box-sizing: border-box; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.is-style-orbit li img { display: block; width: 50%; height: 50%; }
.is-style-orbit li.is-wordmark img { width: 70%; height: 70%; }
.is-style-orbit li.is-core { width: var(--core); height: var(--core); box-shadow: 0 0 0 4px var(--wp--preset--color--accent-3-soft), 0 4px 14px rgba(0, 0, 0, .1); }
.is-style-orbit li.is-core img { width: 52%; height: 52%; }
/* Laid out by orbit.js */
.is-style-orbit.is-ready {
	display: block; height: calc(var(--R) * .92 + var(--lift)); border-radius: var(--R) var(--R) 0 0;
	background:
		radial-gradient(circle at 50% calc(100% - var(--lift)), transparent calc(var(--r0) - 1px), var(--wp--preset--color--line) var(--r0), transparent calc(var(--r0) + 1px), transparent calc(var(--r1) - 1px), var(--wp--preset--color--line) var(--r1), transparent calc(var(--r1) + 1px), transparent calc(var(--r2) - 1px), var(--wp--preset--color--line) var(--r2), transparent calc(var(--r2) + 1px)),
		radial-gradient(circle at 50% calc(100% - var(--lift)), var(--wp--preset--color--surface) 0%, color-mix(in srgb, var(--wp--preset--color--surface) 50%, var(--wp--preset--color--base)) 55%, var(--wp--preset--color--base) 75%);
}
.is-style-orbit.is-ready::after { content: ""; position: absolute; z-index: 2; left: 50%; bottom: calc(var(--lift) - var(--R) * .14); width: calc(var(--R) * .32); aspect-ratio: 1; translate: -50% 0; background: var(--wp--preset--color--accent-3-soft); -webkit-mask: var(--ftw-blob-star) center / contain no-repeat; mask: var(--ftw-blob-star) center / contain no-repeat; animation: ftw-spin 60s linear infinite; rotate: var(--spin); }
.is-style-orbit.is-ready li {
	--r: var(--r2); --turn: calc(var(--a, 0deg) + var(--spin));
	position: absolute; left: 50%; top: calc(100% - var(--lift)); margin: calc(var(--chip) / -2) 0 0 calc(var(--chip) / -2);
	transform: rotate(var(--turn)) translateX(var(--r)) rotate(calc(-1 * var(--turn)));
	animation: ftw-spin 160s linear infinite;
}
.is-style-orbit.is-ready li.is-core { margin: calc(var(--core) / -2) 0 0 calc(var(--core) / -2); }
.is-style-orbit.is-ready li[data-ring="0"] { --r: var(--r0); animation-duration: 70s; animation-direction: reverse; }
.is-style-orbit.is-ready li[data-ring="1"] { --r: var(--r1); animation-duration: 110s; }
.is-style-orbit.is-ready::before { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: calc(var(--lift) + 40px); background: linear-gradient(to top, var(--wp--preset--color--base) 30%, transparent); pointer-events: none; }
.is-style-orbit.is-ready:hover li, .is-style-orbit.is-ready:hover::after { animation-play-state: paused; }
@media (max-width: 600px) {
	.is-style-orbit { --chip: 36px; --core: 42px; }
	.is-style-orbit li.is-core { box-shadow: 0 0 0 3px var(--wp--preset--color--accent-3-soft), 0 3px 10px rgba(0, 0, 0, .1); }
}
@media (prefers-reduced-motion: reduce) {
	.is-style-orbit.is-ready li, .is-style-orbit.is-ready::after { animation: none; }
}

/* Testimonials */
.ftw-quote { min-height: 260px; padding: 24px; }
.ftw-quote__name { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.25rem; }
.ftw-quote__name { margin: 0; }
.ftw-quote .wp-block-quote { margin: auto 0 0 !important; padding: 0; border: 0; }
.ftw-quote .wp-block-quote p { margin: 0; }

/* About */
.ftw-portrait { border-radius: var(--wp--custom--radius--card); min-height: 380px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ftw-portrait .wp-block-image img { height: 360px; width: auto; }

/* CTA */
.ftw-cta { position: relative; padding-block: var(--wp--preset--spacing--80) 110px; }
.ftw-cta > h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.15; }
.ftw-cta > p { margin-top: 18px !important; }

/* Footer */
.site-footer { padding-bottom: 40px; }
.ftw-footer { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--panel); padding: 36px; gap: 32px; align-items: flex-start; font-size: 0.9375rem; }
.ftw-footer__brand { gap: 10px; }
.ftw-footer__brand > * { margin: 0 !important; }
.ftw-footer .wp-block-site-title { font-size: 1.375rem; }
.ftw-footer__menus { gap: 48px; align-items: flex-start; }
.ftw-footer__menu > * { margin: 0 !important; }
.ftw-footer__menu > p { margin-bottom: 8px !important; }
.site-footer .wp-block-navigation__container { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Drawn app screens (core/html; animate with HyperFrames later) ---------- */
.ftw-ui { background: var(--wp--preset--color--white); font-size: 0.8125rem; text-align: left; box-sizing: border-box; }
.ftw-ui b { font-size: var(--wp--preset--font-size--small); }
.ftw-ui__title { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.375rem; }
.ftw-ui__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ftw-ui__chip { padding: 4px 12px; border-radius: 12px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); }
.ftw-ui__meta { color: var(--wp--preset--color--subtle); }
.ftw-ui__bubble { background: var(--wp--preset--color--base); border-radius: 10px; padding: 12px; }


/* Inset screens (feature rows) */
.ftw-ui--inset { flex-grow: 1; border-radius: var(--wp--custom--radius--ui) 0 0 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.ftw-ui__row { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--wp--preset--color--line); }
.ftw-ui__row:last-child { border-bottom: 0; }
.ftw-status { flex-shrink: 0; padding: 2px 10px; border-radius: 10px; }
/* Status colours are theme tokens (custom.status in theme.json), set per palette */
.ftw-status.is-done { background: var(--wp--custom--status--done-bg); color: var(--wp--custom--status--done); }
.ftw-status.is-wait { background: var(--wp--custom--status--wait-bg); color: var(--wp--custom--status--wait); }
.ftw-status.is-info { background: var(--wp--custom--status--info-bg); color: var(--wp--custom--status--info); }
.ftw-text-done { color: var(--wp--custom--status--done); }
.ftw-text-wait { color: var(--wp--custom--status--wait); }
.ftw-text-info { color: var(--wp--custom--status--info); }
.ftw-ui__table { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 8px; }
.ftw-ui__table .is-head { color: var(--wp--preset--color--subtle); padding-bottom: 8px; border-bottom: 1px solid var(--wp--preset--color--line); }
.ftw-ui__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ftw-ui__stats > div { flex: 1 1 110px; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; }
.ftw-ui__stats span { color: var(--wp--preset--color--subtle); }
.ftw-ui__stats b { font-size: 1.125rem; }
.ftw-ui__chart { display: block; width: 100%; height: 90px; }
.ftw-ui__chart .is-main { stroke: var(--wp--preset--color--accent-3); }
.ftw-ui__chart .is-compare { stroke: var(--wp--preset--color--accent-2-soft); }
.ftw-ui__note { padding: 10px 12px; border-radius: 10px; background: var(--wp--custom--status--wait-bg); color: var(--wp--custom--status--wait); }
.ftw-ui__bubble--q { align-self: flex-end; max-width: 80%; }
.ftw-ui__bubble--a { max-width: 85%; background: color-mix(in srgb, var(--wp--preset--color--accent-4-soft) 28%, var(--wp--preset--color--white)); }
.ftw-ui__input { margin-top: auto; padding: 10px 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; color: var(--wp--preset--color--faint); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
	.ftw-hero { padding-top: 48px; }
	.ftw-well { padding: var(--wp--preset--spacing--30); }
	.ftw-stage--inset { padding: 24px 0 0 24px; min-height: 0; }
	.is-style-orbit { height: auto; border-radius: var(--wp--custom--radius--panel); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 28px 16px; box-sizing: border-box; }
	.is-style-orbit::after { display: none; }
	.is-style-orbit li { position: static; }
	.ftw-footer { padding: 28px; }
	.ftw-quote { min-height: 180px; }
}

/* ---------- Animated hero examples (assets/js/enquiry-demo.js) ----------
   One row of tabs (blob icon + label; 4 business, divider, 4 everyday jobs) and a play/pause button.
   Below it, one scene: the message that came in and the time it arrived on the left, what happened
   next (steps, then the punchline) on the right; one column on a phone. Without JS the first scene
   shows finished. The JS adds .is-stacked so every scene sits in one grid cell and the stage keeps
   the height of the tallest one. data-state on a .ftw-demo__step (todo / now / done / set) draws its dot;
   the timeline tweens that attribute, never colours, so the palette switcher recolours it mid-play. */
.ftw-demo { position: relative; }
.ftw-demo .w { display: inline-block; }
.ftw-demo__scene[hidden] { display: none; }
.ftw-demo.is-stacked { display: grid; grid-template-columns: minmax(0, 1fr); }
.ftw-demo.is-stacked > .ftw-demo__scene { grid-column: 1; grid-row: 2; }
.ftw-demo.is-stacked > .ftw-demo__scene[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.ftw-demo.is-stacked > .ftw-demo__controls { grid-column: 1; grid-row: 1; }

/* Tab row */
.ftw-demo__controls { display: flex; align-items: flex-end; gap: 20px; margin: 0 0 28px; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent); }
.ftw-demo__controls[hidden] { display: none; }
.ftw-demo__tabs { display: flex; align-items: flex-end; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ftw-demo__tabs::-webkit-scrollbar { display: none; }
.ftw-demo__tab {
	flex: 0 0 auto; min-width: 104px; margin-bottom: -1px; padding: 4px 8px 12px; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
	font: 500 1.125rem/1.2 var(--wp--preset--font-family--body); color: var(--wp--preset--color--muted); white-space: nowrap;
}
.ftw-demo__tab .ftw-icon { --size: 46px; }
.ftw-demo__tab-label::after { content: attr(data-text); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 600; } /* reserves the bold width so selecting a tab does not shift the row */
.ftw-demo__tab:hover { color: var(--wp--preset--color--contrast); }
.ftw-demo__tab:hover .ftw-icon, .ftw-demo__tab[aria-selected="true"] .ftw-icon { rotate: 4deg; scale: 1.05; }
.ftw-demo__tab[aria-selected="true"] { color: var(--wp--preset--color--contrast); font-weight: 600; border-bottom-color: var(--wp--preset--color--accent-1); }
.ftw-demo__divider { flex: none; align-self: flex-end; width: 1px; height: 64px; margin: 0 10px 14px; background: color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent); }
.ftw-demo__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; padding: 0; border: 1.5px solid var(--wp--preset--color--contrast); border-radius: 50%; background: transparent; color: var(--wp--preset--color--contrast); cursor: pointer; }
.ftw-demo__play:hover { background: color-mix(in srgb, var(--wp--preset--color--white) 70%, transparent); }
.ftw-demo__play-icon { width: 14px; height: 16px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.is-playing .ftw-demo__play-icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.ftw-demo__tab:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: -4px; border-radius: 12px; }
.ftw-demo__play:focus-visible, .ftw-demo__step-btn:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 2px; }
/* One example and no tabs (sector pages): the play button sits at the top right of the scene */
.ftw-demo--single > .ftw-demo__controls { position: absolute; top: 0; right: 0; z-index: 1; margin: 0; border: 0; }
.ftw-demo--single .ftw-demo__play { margin: 0; }
.ftw-demo--single .ftw-demo__heading { padding-right: 56px; }

/* Scene: two columns */
.ftw-demo__scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 48px; row-gap: 18px; align-items: start; }
.ftw-demo__when { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ftw-demo__clock { font: 700 2.75rem/1 var(--wp--preset--font-family--heading); letter-spacing: -0.02em; }
.ftw-demo__ctx { font-size: 1.125rem; color: var(--wp--preset--color--muted); }
.ftw-demo__bubble { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; background: var(--wp--preset--color--white); border-radius: 20px 20px 20px 6px; }
.ftw-demo__from { font-size: 1rem; color: var(--wp--preset--color--subtle); }
.ftw-demo__ask { font: 600 1.625rem/1.3 var(--wp--preset--font-family--heading); overflow-wrap: anywhere; }
.ftw-demo__note { grid-column: 1; grid-row: 3; align-self: end; max-width: none; margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.ftw-demo__after { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; min-width: 0; display: flex; flex-direction: column; }
.ftw-demo__heading { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; }
.ftw-demo__punch { margin: auto 0 0; padding: 16px 20px; background: var(--wp--preset--color--white); border-radius: 16px; font: 600 1.375rem/1.3 var(--wp--preset--font-family--heading); }

/* What happened next: time | dot | text, one row per step */
.ftw-demo__steps { list-style: none; margin: 0 0 20px; padding: 0; }
.ftw-demo__step { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent); }
.ftw-demo__step:last-child { border-bottom: 0; }
.ftw-demo__step-btn { display: grid; grid-template-columns: 96px 28px minmax(0, 1fr); grid-template-areas: "time dot body"; gap: 0 12px; align-items: start; width: 100%; padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ftw-demo__step-time { grid-area: time; white-space: nowrap; font-size: 1.125rem; line-height: 28px; color: var(--wp--preset--color--muted); }
.ftw-demo__step-dot { grid-area: dot; position: relative; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid transparent; }
.ftw-demo__step-body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ftw-demo__step-text { font-size: 1.25rem; font-weight: 600; line-height: 28px; }
.ftw-demo__step-detail { font-size: 1.125rem; line-height: 1.45; color: var(--wp--preset--color--muted); }
.ftw-demo__step[data-state="todo"] .ftw-demo__step-dot { border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent); }
.ftw-demo__step[data-state="now"] .ftw-demo__step-dot { border-color: var(--wp--preset--color--accent-2); }
.ftw-demo__step[data-state="done"] .ftw-demo__step-dot { background: var(--wp--preset--color--accent-2); border-color: var(--wp--preset--color--accent-2); }
.ftw-demo__step[data-state="done"] .ftw-demo__step-dot::after { content: ""; position: absolute; left: 50%; top: 46%; width: 6px; height: 12px; border: solid var(--wp--preset--color--base); border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); }
.ftw-demo__step[data-state="set"] .ftw-demo__step-dot { border-style: dashed; border-color: var(--wp--preset--color--accent-1); }

/* Phone and small tablet: one column, play button beside the time */
@media (max-width: 1040px) {
	.ftw-stage--hero { padding: 20px 20px 24px; }
	.ftw-demo__controls { display: block; height: 92px; margin: 0 -20px 20px; box-sizing: border-box; }
	.ftw-demo__tabs { height: 100%; padding: 4px 20px 0; gap: 4px; }
	.ftw-demo__tab { min-width: 76px; padding: 2px 8px 10px; gap: 8px; font-size: 1rem; }
	.ftw-demo__tab .ftw-icon { --size: 42px; }
	.ftw-demo__divider { display: none; }
	.ftw-demo__play { position: absolute; top: 112px; right: 0; margin: 0; }
	.ftw-demo--single > .ftw-demo__controls { height: auto; margin: 0; padding: 0; }
	.ftw-demo--single .ftw-demo__play { top: 0; }
	.ftw-demo--single .ftw-demo__heading { padding-right: 0; }
	.ftw-demo__scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; row-gap: 20px; }
	.ftw-demo.is-stacked > .ftw-demo__scene[hidden] { display: none; } /* phones: the box fits the example on show instead of the tallest one */
	.ftw-demo__when { display: block; grid-row: auto; }
	.ftw-demo__clock { display: block; padding-right: 56px; font-size: 2.5rem; line-height: 44px; }
	.ftw-demo__ctx { display: block; margin-top: 4px; }
	.ftw-demo__bubble { grid-row: auto; padding: 18px 20px; border-radius: 18px 18px 18px 6px; gap: 8px; }
	.ftw-demo__ask { font-size: 1.375rem; }
	.ftw-demo__after { grid-column: 1; grid-row: auto; }
	.ftw-demo__note { grid-row: auto; align-self: start; font-size: 1rem; }
	.ftw-demo__punch { padding: 16px 18px; font-size: 1.25rem; }
	.ftw-demo__step-btn { grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "dot time" "dot body"; gap: 4px 12px; }
	.ftw-demo__step-dot { width: 26px; height: 26px; }
	.ftw-demo__step-time { font-size: 1rem; line-height: 1.25; padding-top: 3px; }
	.ftw-demo__step-text { font-size: 1.1875rem; line-height: 1.3; }
}

/* ---------- Header menu: dropdown panels (structure/behaviour come from core/navigation) ---------- */
.site-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--ui); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); font-weight: 500;
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface); text-decoration: none; }
.site-header .wp-block-navigation-item__content[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- Inner pages ---------- */
.ftw-hero--page { padding-bottom: var(--wp--preset--spacing--30); }
.ftw-hero--page .ftw-hero__title { max-width: 14em !important; }
.ftw-well > .ftw-cards + .ftw-cards { margin-top: var(--wp--preset--spacing--10) !important; }
.ftw-card__link { margin-top: auto !important; padding-top: 6px; font-weight: 500; }
.ftw-card__link a { color: var(--wp--preset--color--contrast); text-underline-offset: 4px; }
.ftw-card__link a::after { content: " \2192"; }
.ftw-card:has(.ftw-card__link) { justify-content: flex-start; }

/* FAQ: core/details blocks */
.ftw-faq { max-width: 760px; margin-top: var(--wp--preset--spacing--30) !important; }
.ftw-faq__item { border-bottom: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.ftw-faq__item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
	font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 500;
}
.ftw-faq__item summary::-webkit-details-marker { display: none; }
.ftw-faq__item summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--surface); font-size: 1.25rem; transition: rotate .2s ease; }
.ftw-faq__item[open] summary::after { rotate: 45deg; }
.ftw-faq__item > p { margin: 0 0 20px !important; max-width: 640px; }
.ftw-faq__item summary:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .ftw-faq__item summary::after { transition: none; } }
.ftw-section .ftw-cards > .ftw-card { min-height: 0; justify-content: flex-start; }

/* Contact page: booking placeholder + prototype form (phase 2: form plugin block) */
.ftw-contact { gap: var(--wp--preset--spacing--10); }
.ftw-booking { display: grid; place-items: center; min-height: 320px; border: 2px dashed var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--ui); color: var(--wp--preset--color--subtle); }
.ftw-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ftw-form p { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ftw-form label { font-weight: 500; }
.ftw-form label span { font-weight: 400; color: var(--wp--preset--color--subtle); }
.ftw-form input, .ftw-form textarea {
	box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid var(--wp--preset--color--faint); border-radius: var(--wp--custom--radius--ui);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit;
}
.ftw-form input:focus-visible, .ftw-form textarea:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 1px; }
.ftw-form__submit { align-self: flex-start; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); font: 500 1rem/1 var(--wp--preset--font-family--body); cursor: pointer; }
.ftw-note { text-align: center; }
.ftw-note > * { margin-inline: auto !important; }

/* Header fits on one line down to the phone menu (600px): compact colour button, then drop the header CTA */
@media (max-width: 1100px) {
	.ftw-palette__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.ftw-palette__toggle { padding: 0 12px; }
}
@media (min-width: 600px) and (max-width: 900px) {
	.ftw-header__cta { display: none; }
	.site-header .wp-block-navigation__container { gap: 16px; }
}
@media (min-width: 600px) and (max-width: 720px) {
	.site-header .wp-block-navigation__container { gap: 12px; }
	.site-header .wp-block-navigation-item__content { font-size: 0.875rem; }
	.ftw-header { gap: 12px; }
}
@media (max-width: 599px) {
	.site-header .is-menu-open .wp-block-navigation__submenu-container { border: 0; box-shadow: none; background: none; font-weight: 400; }
	.site-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; text-decoration: underline; }
}
@media (max-width: 599px) {
	.ftw-header { flex-wrap: nowrap; gap: 8px; }
	.ftw-header__actions { margin-left: auto; }
	.ftw-header__cta { display: none; }
	.site-header .wp-block-navigation { order: 3; }
}

/* ---------- Full-content pass: pain points, example projects, tables, calculator, booking ---------- */
.ftw-section__lead { max-width: 40em; margin-top: 0 !important; }
.has-text-align-center.ftw-section__lead { margin-inline: auto; }
@media (min-width: 782px) {
	.ftw-cards--3 { flex-wrap: wrap !important; }
	.ftw-cards.ftw-cards--3 > .wp-block-column.wp-block-column { flex: 1 1 calc(33.333% - 8px) !important; max-width: calc(33.333% - 5.4px); }
}
@media (min-width: 600px) and (max-width: 781px) {
	.ftw-cards.ftw-cards--3 > .wp-block-column.wp-block-column, .ftw-cards.ftw-cards--2 > .wp-block-column.wp-block-column { flex-basis: calc(50% - 4px) !important; }
}

/* Pain points */
.ftw-pain { gap: 8px; }
.ftw-pain__quote { font-family: var(--wp--preset--font-family--heading); font-size: 1.375rem; line-height: 1.25; color: var(--wp--preset--color--contrast); }

/* Example projects */
.ftw-example__tag { align-self: flex-start; padding: 4px 10px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); font-size: 0.75rem; font-weight: 500; }
.ftw-example__result { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--wp--preset--color--line); font-weight: 500; color: var(--wp--preset--color--contrast); }
.ftw-example { gap: 10px; }
.ftw-worked > .wp-block-columns { gap: var(--wp--preset--spacing--40); align-items: stretch !important; }
.ftw-worked__story > * { margin: 0 0 10px !important; }
.ftw-worked__story > h2, .ftw-worked__story > h3 { margin-bottom: 18px !important; font-size: var(--wp--preset--font-size--x-large); }
.ftw-worked__label { margin: 14px 0 4px !important; font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; color: var(--wp--preset--color--subtle); }
.ftw-worked__label:first-child { margin-top: 0 !important; }
.ftw-worked__facts { gap: 0; }
.ftw-worked__facts > p { margin: 0; }
.ftw-worked__big { font-family: var(--wp--preset--font-family--heading); font-size: 1.75rem; line-height: 1.2; font-weight: 500; color: var(--wp--preset--color--contrast); }
.ftw-examples { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.ftw-examples > .ftw-worked { scroll-margin-top: 100px; }

/* Tick lists (core/list style variation) */
.is-style-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.is-style-ticks li { position: relative; padding-left: 30px; line-height: 1.45; }
.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--accent-2-soft); }
.is-style-ticks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid var(--wp--preset--color--contrast); border-width: 0 2px 2px 0; rotate: 45deg; }

/* Before-and-after and price tables (core/table) */
.ftw-week { border-radius: var(--wp--custom--radius--panel); background: var(--wp--preset--color--surface); padding: var(--wp--preset--spacing--10); margin-top: var(--wp--preset--spacing--30) !important; }
.ftw-week table { border-collapse: separate; border-spacing: 0; background: var(--wp--preset--color--white); border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.ftw-week th, .ftw-week td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wp--preset--color--line); }
.ftw-week tbody tr:last-child > * { border-bottom: 0; }
.ftw-week thead th { font-size: 0.8125rem; font-weight: 600; color: var(--wp--preset--color--subtle); background: var(--wp--preset--color--white); }
.ftw-week tbody th { font-weight: 500; }
.ftw-week td { color: var(--wp--preset--color--muted); }
.ftw-week td:last-child { color: var(--wp--preset--color--contrast); }
.ftw-week tbody th a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 640px) {
	.ftw-week thead { display: none; }
	.ftw-week tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--wp--preset--color--line); }
	.ftw-week tbody tr:last-child { border-bottom: 0; }
	.ftw-week th, .ftw-week td { display: block; padding: 2px 0; border: 0; }
	.ftw-week tbody th { margin-bottom: 4px; }
	.ftw-week td:nth-of-type(1)::before { content: "Now: "; color: var(--wp--preset--color--subtle); }
	.ftw-week td:nth-of-type(2)::before { content: "With automation: "; color: var(--wp--preset--color--subtle); }
	.ftw-week--prices td:nth-of-type(1)::before { content: ""; }
	.ftw-week--prices td:nth-of-type(2)::before { content: "Example price: "; }
	.ftw-week--prices td:nth-of-type(3)::before { content: "Time: "; color: var(--wp--preset--color--subtle); }
}

/* Savings calculator (core/html) */
.ftw-calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--wp--preset--spacing--30); align-items: center; padding: 8px; }
.ftw-calc__inputs { display: flex; flex-direction: column; gap: 14px; }
.ftw-calc__inputs p { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ftw-calc__inputs label { font-weight: 500; }
.ftw-calc input, .ftw-calc select { min-height: 48px; padding: 0 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); font: inherit; }
.ftw-calc input:focus-visible, .ftw-calc select:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: 1px; }
.ftw-calc__out { padding: 26px; border-radius: var(--wp--custom--radius--card); display: flex; flex-direction: column; gap: 6px; }
.ftw-calc__out > p { margin: 0; }
@media (max-width: 781px) { .ftw-calc { grid-template-columns: 1fr; } }

/* Booking calendar mock (prototype only; phase 2 is an embed) */
.ftw-booking { display: block; min-height: 0; padding: 18px; border: 1px solid var(--wp--preset--color--line); border-style: solid; color: var(--wp--preset--color--contrast); }
.ftw-booking > p { margin: 0; }
.ftw-booking__month { font-weight: 600; }
.ftw-booking__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.ftw-booking__day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: var(--wp--preset--color--surface); font-size: 0.875rem; }
.ftw-booking__day b { font-size: 0.75rem; font-weight: 500; color: var(--wp--preset--color--subtle); }
.ftw-booking__day.is-on { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.ftw-booking__day.is-on b { color: inherit; }
.ftw-booking__hint { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.ftw-booking__slots { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px; margin-top: 10px; }
.ftw-booking__slot { padding: 10px 0; text-align: center; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; font-size: 0.875rem; font-weight: 500; }
.ftw-form__note { font-size: 0.8125rem; color: var(--wp--preset--color--subtle); }
.ftw-form__note a, .ftw-footer a { color: inherit; text-underline-offset: 3px; }

/* Plain text sections */
.ftw-prose { max-width: 40em; }
.ftw-prose > p { margin: 0 0 14px !important; }

/* ---------- Guides (pattern ftw/guide: single-guide.html in phase 2) ---------- */
.ftw-hero--guide .ftw-hero__title { max-width: 18ch; margin-inline: auto; }
.ftw-guide__meta { margin-top: 0 !important; }
.ftw-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); margin-top: var(--wp--preset--spacing--50) !important; }
.ftw-guide__body { min-width: 0; max-width: 720px; }
.ftw-guide__body > * + * { margin-top: 0; }
.ftw-guide__toc details { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--white); padding: 16px 20px; }
.ftw-guide__toc summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.ftw-guide__toc ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 0.9375rem; }
.ftw-guide__toc a { color: var(--wp--preset--color--muted); text-decoration: none; }
.ftw-guide__toc a:hover, .ftw-guide__toc a[aria-current="true"] { color: var(--wp--preset--color--contrast); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
	.ftw-guide { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
	.ftw-guide__toc { position: sticky; top: 24px; }
	.ftw-guide__toc details { border: 0; background: none; padding: 0; }
	.ftw-guide__toc summary { list-style: none; pointer-events: none; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--subtle); }
	.ftw-guide__toc summary::-webkit-details-marker { display: none; }
	.ftw-guide__toc ol { padding-left: 0; list-style: none; border-left: 2px solid var(--wp--preset--color--line); }
	.ftw-guide__toc li { padding-left: 14px; }
}
.ftw-guide__short h2 { font-size: 1.375rem; margin: 0 0 12px; }
.ftw-guide__section { padding-top: var(--wp--preset--spacing--50); scroll-margin-top: 24px; }
.ftw-guide__section > h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }
.ftw-guide__section > p, .ftw-guide__section > ul, .ftw-guide__section > ol { font-size: 1.0625rem; line-height: 1.7; margin-block: 0 16px; }
.ftw-guide__section > ul, .ftw-guide__section > ol { padding-left: 1.25em; }
.ftw-guide__section li + li { margin-top: 6px; }
.ftw-guide__section a { color: var(--wp--preset--color--contrast); text-underline-offset: 3px; }
.ftw-guide__steps { counter-reset: s; list-style: none; padding-left: 0 !important; display: grid; gap: 12px; }
.ftw-guide__steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--surface); margin: 0 !important; }
.ftw-guide__steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--accent-1-soft); color: var(--wp--preset--color--contrast); font-weight: 600; font-size: .875rem; }
.ftw-guide__section > .ftw-section { padding-block: 0; }
.ftw-guide__section.ftw-section { padding-bottom: 0; }
.ftw-guide__section .ftw-worked { margin-top: 8px; }
.ftw-guide__table { margin-block: 8px 20px !important; }
.ftw-guide__table figcaption { font-size: .875rem; color: var(--wp--preset--color--subtle); margin-top: 8px; padding-inline: 6px; }
@media (max-width: 781px) {
	.ftw-week.ftw-guide__table td:nth-of-type(n)::before { content: attr(data-label) ": "; color: var(--wp--preset--color--subtle); }
}
.ftw-callout { border-radius: var(--wp--custom--radius--card); padding: 18px 20px; margin-block: 8px 20px !important; border-left: 4px solid var(--wp--preset--color--accent-1); background: var(--wp--preset--color--surface); }
.ftw-callout p { margin: 0; color: var(--wp--preset--color--muted); }
.ftw-callout .ftw-callout__title { color: var(--wp--preset--color--contrast); font-weight: 600; margin-bottom: 4px; }
.ftw-callout--warning { border-left-color: var(--wp--preset--color--accent-4); }
.ftw-callout--tip { border-left-color: var(--wp--preset--color--accent-2); }
.ftw-visual { margin: 12px 0 24px !important; }
.ftw-visual figcaption { font-size: .9375rem; color: var(--wp--preset--color--muted); margin-top: 10px; line-height: 1.55; }
.ftw-visual__placeholder { aspect-ratio: 16 / 9; border-radius: var(--wp--custom--radius--panel); background: var(--wp--preset--color--accent-1-soft); display: grid; place-items: center; text-align: center; padding: 20px; }
.ftw-guide__sources ol { padding-left: 1.25em; display: grid; gap: 6px; color: var(--wp--preset--color--muted); }
.ftw-guide__sources a { overflow-wrap: anywhere; }

/* Homepage evolution: same Sunbeam tokens and shapes, clearer reading order. */
body { line-height: 1.55; }
:focus-visible { outline: 3px solid var(--wp--preset--color--contrast); outline-offset: 4px; }
a:hover { opacity: 1; }
p a:hover { text-decoration-thickness: 2px; }
.ftw-primary .wp-block-button__link {
	background: var(--wp--preset--color--accent-1-soft);
	color: #231A14;
	border-radius: var(--wp--custom--radius--pill);
	min-height: 52px; padding-right: 22px; font-weight: 600;
}
.ftw-primary .wp-block-button__link:hover { box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1); }
.ftw-primary .wp-block-button__link::before { background: #231A14; }
.ftw-primary .wp-block-button__link::after { background: #FFFBF5; }
.ftw-home > .ftw-hero { padding-top: 45px; }
.ftw-home .ftw-hero__title { max-width: 14em !important; margin-top: 0 !important; line-height: 1.06; }
.ftw-home .ftw-hero__lead { max-width: 36em !important; margin-top: 24px; }
.ftw-hero__byline { max-width: 37em !important; }
.ftw-home .ftw-hero .wp-block-buttons { margin-top: 24px; }
.ftw-demo-intro { padding-top: 48px; }
.ftw-demo-intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.ftw-demo-intro p { margin-top: 0; }
.ftw-home .ftw-section { padding-block: 48px; }
.ftw-home .ftw-reassurance { margin-top: 0; }
.ftw-reassurance {
	list-style: none; padding: 26px 0; display: flex; flex-wrap: wrap;
	justify-content: space-between; gap: 12px 24px; border-bottom: 1px solid var(--wp--preset--color--line);
}
.ftw-reassurance li { display: flex; align-items: center; gap: 10px; }
.ftw-reassurance li::before { content: ''; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--wp--preset--color--accent-2); }
.ftw-section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 28px; }
.ftw-section-heading > * { margin: 0; }
/* Prices: one road, four stops. Badges, road and arc are decorative; the ordered list carries the meaning. */
.ftw-ladder {
	--gap: 24px; --road: 116px; --stop-x: 62px; --teal: color-mix(in srgb, var(--wp--preset--color--accent-2) 78%, var(--wp--preset--color--contrast));
	list-style: none; margin: 0 0 var(--gap); padding: var(--road) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: var(--gap); row-gap: 0;
}
.ftw-ladder__row {
	position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; min-width: 0;
	padding: 24px; border-radius: var(--wp--custom--radius--card); margin: 0;
}
.ftw-ladder__row > * { margin: 0; }
.ftw-ladder__row--optional { background: transparent; border: 2px dashed color-mix(in srgb, var(--wp--preset--color--contrast) 32%, transparent); padding: 22px; }
.ftw-ladder__time { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ftw-ladder__row h3 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
.ftw-ladder__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 700 clamp(2rem, 3.4vw, 2.5rem)/1 var(--wp--preset--font-family--heading); }
.ftw-ladder__from, .ftw-ladder__unit { font: 400 1.125rem/1.2 var(--wp--preset--font-family--body); color: var(--wp--preset--color--muted); }
.ftw-ladder__detail { margin-top: 6px !important; line-height: 1.45; }
.ftw-ladder__note { align-self: end; padding-top: 6px; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.ftw-ladder__note--credit { color: var(--teal); font-weight: 500; }

/* Badge sits on the road above its card; the line to the next stop hangs off the card's ::before */
.ftw-ladder__number { position: absolute; left: 38px; top: -52px; z-index: 1; font: 700 1.375rem var(--wp--preset--font-family--heading); --size: 48px; }
.ftw-ladder__row:not(:last-child)::before {
	content: ""; position: absolute; z-index: 0; left: var(--stop-x); top: -30px; width: calc(100% + var(--gap)); height: 4px; border-radius: 2px;
	background: var(--wp--preset--color--contrast);
}
.ftw-ladder__row:nth-child(3)::before { background: none; border-top: 4px dashed color-mix(in srgb, var(--wp--preset--color--contrast) 38%, transparent); border-radius: 0; height: 0; }

/* The credit: an arc over the road from stop 2 to stop 3 on wide screens, a connector note on narrow ones */
.ftw-ladder__arc {
	position: absolute; z-index: 0; left: var(--stop-x); top: -100px; width: calc(100% + var(--gap)); height: 42px; box-sizing: border-box;
	border: 3px solid var(--teal); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.ftw-ladder__arc::after {
	content: ""; position: absolute; right: -12px; bottom: -9px; width: 0; height: 0;
	border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 13px solid var(--teal);
}
.ftw-ladder__credit {
	position: absolute; z-index: 1; top: -113px; left: calc(var(--stop-x) + (100% + var(--gap)) / 2); translate: -50% 0;
	width: max-content; max-width: none; white-space: nowrap; text-align: center; line-height: 1.2;
	padding: 2px 10px; background: var(--wp--preset--color--base); color: var(--teal); font-size: var(--wp--preset--font-size--small); font-weight: 600;
}

.ftw-ladder__strip {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
	margin: 0 0 20px; padding: 16px 16px 16px 28px; border-radius: 20px;
}
.ftw-ladder__strip > p { margin: 0; flex: 1 1 22em; font-size: 1.1875rem; }
.ftw-ladder__strip .wp-block-buttons { flex: 0 0 auto; margin: 0; }
.ftw-home-feature { padding: 28px; }
.ftw-home-feature .wp-block-columns { align-items: center !important; gap: 32px; }
.ftw-home-feature .ftw-feature__text { padding: 12px; }
.ftw-workflow { margin: 0; padding: 26px; border-radius: var(--wp--custom--radius--card); }
.ftw-workflow--teal { background: color-mix(in srgb, var(--wp--preset--color--accent-2-soft) 42%, var(--wp--preset--color--white)); }
.ftw-workflow--mustard { background: color-mix(in srgb, var(--wp--preset--color--accent-3-soft) 42%, var(--wp--preset--color--white)); }
.ftw-workflow figcaption { margin-bottom: 24px; }
.ftw-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.ftw-flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--wp--preset--color--white); }
.ftw-flow img { flex-shrink: 0; object-fit: contain; }
.ftw-flow span { min-width: 0; }
.ftw-flow strong { display: block; font-weight: 600; }
.ftw-flow li + li::before { content: '↓'; position: absolute; left: 32px; top: -30px; line-height: 30px; color: var(--wp--preset--color--contrast); }
.ftw-workflow__note { margin: 22px 0 0; padding-left: 12px; border-left: 2px solid var(--wp--preset--color--contrast); }
.ftw-private { background: color-mix(in srgb, var(--wp--preset--color--accent-4-soft) 24%, var(--wp--preset--color--base)); padding: 36px; }
.ftw-private .wp-block-columns { align-items: center !important; gap: 36px; }
.ftw-private__diagram { margin: 0; padding: 28px; border-radius: var(--wp--custom--radius--card); }
.ftw-private__diagram figcaption { font-weight: 600; margin-bottom: 20px; }
.ftw-private__boundary { border: 2px dashed var(--wp--preset--color--accent-4); border-radius: 18px; padding: 22px 16px; text-align: center; }
.ftw-private__boundary p { margin: 0; }
.ftw-private__boundary > span { display: block; margin: 12px 0; }
.ftw-private__diagram > p { margin-bottom: 0; }
.ftw-private > .wp-block-buttons { margin-top: 28px; }
.ftw-home #about .wp-block-columns { gap: 40px; }
.ftw-home #about .ftw-portrait { min-height: 440px; }
.ftw-home #about .ftw-portrait img { max-width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.ftw-cta > p { max-width: 34em !important; }
.ftw-footer { font-size: 1.125rem; }
.ftw-footer__menus { gap: 28px; flex-wrap: wrap; }
.ftw-example__tag { padding: 0; border-radius: 0; background: none; font-size: 1.125rem; }
.ftw-step__tag { padding: 0; border-radius: 0; background: none; font-size: 1.125rem; white-space: normal; }
.ftw-hero > .ftw-kicker { font-size: 1.125rem; }
/* Text on tinted panels uses the main ink; faint colour is decorative only. */
.ftw-home .has-subtle-color, .site-footer .has-subtle-color { color: var(--wp--preset--color--muted) !important; }
.ftw-home .ftw-stage--hero {
	background: linear-gradient(160deg, color-mix(in srgb, var(--wp--preset--color--accent-1-soft) 60%, var(--wp--preset--color--white)), var(--wp--preset--color--accent-1-soft)) !important;
}
/* Dark palette needs dark panels for its light ink. Tool marks retain white backing. */
:root[data-palette="arcade"] .ftw-home .ftw-stage--hero {
	background: color-mix(in srgb, var(--wp--preset--color--accent-1-soft) 18%, var(--wp--preset--color--surface)) !important;
}
:root[data-palette="arcade"] .ftw-flow img { background: #fff; border-radius: 6px; padding: 4px; box-sizing: border-box; }
:root[data-palette="arcade"] .ftw-ladder__number { color: #0E0D16; }
@media (min-width: 782px) {
	.ftw-home-feature:nth-of-type(even) .wp-block-columns { flex-direction: row-reverse; }
}
@media (max-width: 1100px) and (min-width: 600px) {
	.ftw-header__cta { display: none; }
}
@media (max-width: 781px) {
	.ftw-section-heading { grid-template-columns: 1fr; gap: 18px; }
	.ftw-home-feature, .ftw-private { padding: 20px; }
	.ftw-home-feature .ftw-feature__text { padding: 0; }
	.ftw-private__diagram { padding: 22px 18px; }
	.ftw-workflow { padding: 22px 16px; }
	.ftw-flow li { padding: 14px 12px; gap: 10px; }
	.ftw-flow img:last-child:not(:first-child) { display: none; }
	.ftw-home .ftw-section { padding-block: 32px; }
	.ftw-home #about .ftw-portrait { min-height: 300px; }
	.ftw-home #about .ftw-portrait img { max-height: 340px; }
	.ftw-home .ftw-hero__title { margin-top: 18px !important; }
	.ftw-home .ftw-hero__lead br { display: none; }
	.ftw-demo-intro { padding-top: 32px; }
	.ftw-home .ftw-cta { padding-block: 56px 72px; }
	.ftw-primary .wp-block-button__link { padding-right: 16px; gap: 8px; }
	.ftw-cta h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
:root[data-palette="arcade"] .ftw-primary .wp-block-button__link { color: #0E0D16; }
.skip-link { position: absolute; z-index: 100001; left: 20px; top: -100px; padding: 12px 20px; border-radius: 12px; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.skip-link:focus { top: 12px; }

/* Narrow desktop: the credit label may wrap so it stays inside the arc */
@media (min-width: 900px) and (max-width: 1139px) {
	.ftw-ladder__credit { white-space: normal; width: 9.5em; top: -122px; }
}
/* Prices on tablet and phone: a vertical road, badges down the left, the card beside each badge */
@media (max-width: 899px) {
	.ftw-ladder { --stop-x: 0px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 0 0 0 68px; row-gap: var(--gap); }
	.ftw-ladder__row { padding: 22px 20px; display: flex; flex-direction: column; grid-row: auto; gap: 10px; }
	.ftw-ladder__note { margin-top: auto !important; align-self: stretch; }
	.ftw-ladder__number { left: -68px; top: 20px; }
	.ftw-ladder__row:not(:last-child)::before {
		left: -46px; top: 44px; width: 4px; height: calc(100% + var(--gap)); margin-left: -2px;
		border-radius: 2px;
	}
	.ftw-ladder__row:nth-child(3)::before { height: calc(100% + var(--gap)); width: 4px; border-top: 0; background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--wp--preset--color--contrast) 38%, transparent) 0 8px, transparent 8px 14px); }
	.ftw-ladder__arc { display: none; }
	.ftw-ladder__row:nth-child(2) { margin-bottom: 52px; }
	.ftw-ladder__credit {
		top: auto; bottom: -50px; left: 0; translate: none; width: auto; max-width: none; text-align: left;
		display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
		background: color-mix(in srgb, var(--wp--preset--color--accent-2-soft) 30%, var(--wp--preset--color--base));
	}
	.ftw-ladder__credit::before { content: "\2193" / ""; font-size: 1.125rem; line-height: 1; }
	.ftw-ladder__strip { padding: 20px; }
	.ftw-ladder__strip > p { flex-basis: 100%; }
}
@media (max-width: 480px) {
	.ftw-ladder { padding-left: 58px; }
	.ftw-ladder__number { left: -58px; --size: 42px; font-size: 1.25rem; }
	.ftw-ladder__row:not(:last-child)::before { left: -37px; top: 41px; }
}
.ftw-404-links { justify-content: center; margin-block: 32px 64px; }
