/* ============================================================================
   TEST SKIN: "Upwork" look. Loaded after theme.css. Delete this file's <link> to go back.
   Source: Figma "My website" > Your Dashboard - Upwork (colours, radii, buttons read from the file).
   - white page, #1a1a1a text, soft grey-blue panels, 1px #d4dbe2 outlines, no shadows
   - one accent: pink #fb64b6 (Tailwind pink-400), pill buttons (filled and outlined)
   - one sans family (Allo stands in for Upwork's Neue Montreal, which is a paid font)
   Protected NDA pages (body.is-protected) are not touched.
   ============================================================================ */

/* ---- One family: Allo (Josh Puckett, SIL Open Font License; licence in /fonts/ALLO-OFL.txt).
   It answers to the old serif names, so every existing rule switches at once ---- */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/AlloVariableFriendly.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/AlloVariableFriendly.woff2) format('woff2'); }
@font-face { font-family: 'Allo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/AlloVariableFriendly.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/fonts/Allo-Oblique.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 600 900; font-display: swap; src: url(/fonts/Allo-SemiBoldOblique.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/fonts/Allo-Oblique.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 600 700; font-display: swap; src: url(/fonts/Allo-SemiBoldOblique.woff2) format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/fonts/Allo-Oblique.woff2) format('woff2'); }
@font-face { font-family: 'Allo'; font-style: italic; font-weight: 600 900; font-display: swap; src: url(/fonts/Allo-SemiBoldOblique.woff2) format('woff2'); }

/* ---- Palette ---- */
body:not(.is-protected) {
  --dark: #1a1a1a;      --gray: rgba(36, 46, 66, 0.8);  --light-gray: #d4dbe2;  --bg-soft: #f9fafb;
  --text: #1a1a1a;      --muted: rgba(36, 46, 66, 0.8); --border: #d4dbe2;      --bg-card: #f9fafb;   --border-btn: #d4dbe2;
  --ink: #1a1a1a;       --ink-muted: rgba(36, 46, 66, 0.8); --white: #ffffff;
  --strong: #1a1a1a;    --surface: #ffffff;   --on-accent: #1a1a1a;   --accent-bg: #fb64b6;
  --accent: #fb64b6;    --accent-hover: #ec4899;   --on-accent-text: #1a1a1a;  --panel-tint: #edf2fd;  --panel-soft: rgba(237, 242, 253, 0.65);
  background: #ffffff; color: #1a1a1a; letter-spacing: 0.005em;
  /* shared tokens: one shadow, one easing, one speed for every button and card */
  --shadow-accent: 0 10px 15px rgba(251, 100, 182, 0.25), 0 4px 6px rgba(251, 100, 182, 0.25);
  --shadow-accent-hover: 0 14px 20px rgba(251, 100, 182, 0.28), 0 6px 8px rgba(251, 100, 182, 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); --dur: 0.2s;
}
html, body.home:not(.is-protected) { background: #ffffff; }
html[data-theme="dark"] body:not(.is-protected) {
  --dark: #f1f3f5;      --gray: rgba(226, 232, 240, 0.78);  --light-gray: #343b44;  --bg-soft: #1b1f24;
  --text: #f1f3f5;      --muted: rgba(226, 232, 240, 0.78); --border: #343b44;      --bg-card: #1b1f24;   --border-btn: #343b44;
  --ink: #f1f3f5;       --ink-muted: rgba(226, 232, 240, 0.78); --white: #14171a;
  --strong: #ffffff;    --surface: #14171a;   --on-accent: #1a1a1a;   --accent-bg: #fb64b6;
  --accent: #fb64b6;    --accent-hover: #ec4899;   --on-accent-text: #1a1a1a;  --panel-tint: #1b2030;  --panel-soft: #1b2030;
  background: #14171a; color: #f1f3f5;
}
html[data-theme="dark"], html[data-theme="dark"] body.home:not(.is-protected) { background: #14171a; }

/* ---- Headings: sentence-case sans, semibold, tight ---- */
html:root body:not(.is-protected) :is(h1, h2, h3, h4),
html:root body:not(.is-protected) :where([class$="-title"], [class*="-title "], .hero-name, .cs-card-title, .svc-card-title) {
  font-family: 'Allo', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -0.015em; font-weight: 600;
}
html:root body:not(.is-protected) main h1:not(:where(.pg-section, .wf-title-bar) *) { font-weight: 600 !important; letter-spacing: -0.022em !important; line-height: 1.15 !important; }
html:root body:not(.is-protected) main h2:not(:where(.pg-section, .wf-title-bar) *) { font-weight: 600 !important; letter-spacing: -0.018em !important; }
html:root body:not(.is-protected) main :is(.hero > .hero-text > .hero-title, .pd-hero h1) { font-weight: 600 !important; letter-spacing: -0.03em !important; font-size: 56px !important; line-height: 1.08 !important; }
html:root body:not(.is-protected) main :is(h3, .cs-card-title, .svc-card-title, .pd-card h3, .ab-card h3) { font-weight: 600 !important; letter-spacing: -0.01em; }
html:root body:not(.is-protected) main .help-name { font-weight: 600 !important; font-size: 36px !important; letter-spacing: -0.025em; }
@media (max-width: 960px) { html:root body:not(.is-protected) main :is(.hero > .hero-text > .hero-title, .pd-hero h1) { font-size: 44px !important; } }
@media (max-width: 640px) { html:root body:not(.is-protected) main :is(.hero > .hero-text > .hero-title, .pd-hero h1) { font-size: 36px !important; } }

/* Body copy: a touch smaller and more even than the serif was */
html:root body:not(.is-protected) main :is(.hero-desc, .pd-lead) { font-size: 18px; line-height: 1.55; }
html:root body:not(.is-protected) main :is(.sec-sub, .pd-sub, .cs-section-sub, .blog-head-sub) { font-size: 17px !important; line-height: 1.55; }
html:root body:not(.is-protected) main .sc-text, html:root body:not(.is-protected) main .sc-points { font-size: 17px; line-height: 1.6; }
html:root body:not(.is-protected) .nav-links a, html:root body:not(.is-protected) .mobile-menu-links a { font-family: 'Allo', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }

/* Small labels: Upwork uses a plain 12px semibold line, not tracked-out capitals */
html:root body:not(.is-protected) :is(.sc-kicker, .ax-eyebrow, .hero-eyebrow, .pd-eyebrow, .work-on-eyebrow, .pd-cmp-label, .pd-cmp-cap, .cs-side-title) {
  font-family: 'Allo', sans-serif !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.03em !important; text-transform: none !important; color: var(--gray) !important;
}

/* ---- Buttons: green pill, filled or outlined ---- */
html:root body:not(.is-protected) :is(.btn-dark, .btn-outline-dark, .btn-outline, .cs-access-btn, .cr-contact-submit) {
  font-family: 'Allo', sans-serif !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0.04em !important;
  border-radius: 9999px !important; padding: 11px 22px !important; box-shadow: none !important; transition: background-color .15s, color .15s, border-color .15s;
}
html:root body:not(.is-protected) .mb .mb-fill { display: none !important; }
html:root body:not(.is-protected) :is(.btn-dark, .btn-dark.mb-solid.mb-solid.mb-solid.mb-solid) { background: var(--accent) !important; color: #fff !important; border: 1px solid transparent !important; }
html:root body:not(.is-protected) :is(.btn-dark, .btn-dark.mb-solid.mb-solid.mb-solid.mb-solid):is(:hover, :focus-visible) { background: var(--accent-hover) !important; box-shadow: none !important; }
html:root body:not(.is-protected) :is(.btn-dark.mb-solid.mb-solid.mb-solid.mb-inv) { background: var(--accent) !important; color: #fff !important; }
html:root body:not(.is-protected) :is(.btn-outline-dark, .btn-outline, .btn-outline-dark.mb-stroke.mb-stroke.mb-stroke.mb-stroke, .btn-outline.mb-stroke.mb-stroke.mb-stroke.mb-stroke) { background: transparent !important; color: var(--dark) !important; border: 1.5px solid var(--accent) !important; }
html:root body:not(.is-protected) :is(.btn-outline-dark, .btn-outline, .btn-outline-dark.mb-stroke.mb-stroke.mb-stroke.mb-stroke, .btn-outline.mb-stroke.mb-stroke.mb-stroke.mb-stroke):is(:hover, :focus-visible) { background: rgba(251, 100, 182, 0.14) !important; color: var(--dark) !important; border-color: var(--accent-hover) !important; }
html:root body:not(.is-protected) :is(.btn-dark, .btn-outline-dark) * { color: inherit !important; }
/* text link with arrow: green, semibold */
html:root body:not(.is-protected) a.link-btn { font-family: 'Allo', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--dark); }
html:root body:not(.is-protected) a.link-btn:hover { opacity: 1; color: var(--dark); }
html:root body:not(.is-protected) .cp-related > span, html:root body:not(.is-protected) :is(.bcard-more, .post-more) { color: var(--dark); font-weight: 600; }

/* ---- Cards and panels: white, 1px outline, radius 24, padding 32, no shadow ---- */
body:not(.is-protected) main :is(.pd-card, .ab-card, .ab-quote, .tm-card, .cs-card, .bcard, .blog-card, .help-card, .cp-related, .card, .principles li, .sc-flow > div, .pd-cmp-col, .cr-cs3 a) {
  background: #fff; border: 1px solid var(--light-gray); box-shadow: none;
}
html[data-theme="dark"] body:not(.is-protected) main :is(.pd-card, .ab-card, .ab-quote, .tm-card, .cs-card, .bcard, .blog-card, .help-card, .cp-related, .card, .principles li, .sc-flow > div, .pd-cmp-col) { background: var(--bg-soft); }
body:not(.is-protected) main :is(.pd-hero, .pd-cta, .ab-cta, .ab-hero, .contact-block) { background: var(--panel-tint); border: 0; }
body:not(.is-protected) .cp-related { padding: 24px 32px; }
body:not(.is-protected) .cp-related strong { font-family: 'Allo', sans-serif; font-weight: 600; }

/* ---- Tags and chips: outlined pills, plain sans ---- */
html:root body:not(.is-protected) :is(.cs-tags li, .cs-row-tags li, .arc-tag, .blog-tab, .cs-tab, .pd-chips li, .bf-chips span, .btag, .bcard-meta span) { font-family: 'Allo', sans-serif !important; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; border-color: var(--light-gray); color: var(--gray); }
html:root body:not(.is-protected) :is(.blog-tab.active, .cs-tab.active) { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }

/* ---- Spacing: a little tighter between sections ---- */
:root { --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px; --card-pad: 32px; }
body:not(.is-protected) .cs-main .content { gap: 64px; }

/* ---- Footer ---- */
html:root body:not(.is-protected) .footer .footer-name, html:root body:not(.is-protected) .footer .footer-col .footer-h { font-family: 'Allo', sans-serif !important; font-weight: 600 !important; }
html:root body:not(.is-protected) .footer .footer-col a, html:root body:not(.is-protected) .footer .footer-legal { font-family: 'Allo', sans-serif; font-size: 13px; color: var(--gray); }
html:root body:not(.is-protected) .footer-social a { border-color: var(--light-gray); color: var(--gray); }
html:root body:not(.is-protected) .footer-bottom { border-top-color: var(--light-gray); }

/* ---- Cookie card ---- */
html:root .ck-t { font-family: 'Allo', sans-serif; font-weight: 600; }
html:root .ck-b button { font-family: 'Allo', sans-serif; font-weight: 600; font-size: 14px; border-color: var(--accent); color: var(--dark); }
html:root .ck-b .ck-yes { background: var(--accent); color: #fff; }

/* ---- Top bar: plain white with a hairline ---- */
html:root body:not(.is-protected) .nav { background: var(--surface) !important; border-bottom: 1px solid var(--light-gray); box-shadow: none; }
html:root body:not(.is-protected) .nav-hamburger span { background: var(--dark); }


/* ============================ HOME: polish ============================ */

/* ---- Service cards: two matching cards. Only the background pattern differs (rings / grid). Light in the light theme, dark in the dark theme ---- */
html:root body:not(.is-protected) .help-card.hs {
  background: #fff; --fg: #1a1a1a; --fg-soft: rgba(36, 46, 66, 0.8); --line: #d4dbe2; --chip: rgba(26, 26, 26, 0.05);
  border: 1px solid var(--light-gray); box-shadow: none; clip-path: inset(0 round 24px); border-radius: 24px;
}
html:root body:not(.is-protected) .help-card.hs :is(.help-name, .help-headline) { color: #1a1a1a; }
html:root body:not(.is-protected) .help-card.hs .help-more p { color: rgba(36, 46, 66, 0.8); }
html:root body:not(.is-protected) .help-card.hs .hs-art { --hairline-plate: #fff; }
html:root body:not(.is-protected) .help-card--cro .help-bg { background-image: repeating-radial-gradient(circle at 100% 100%, rgba(26, 26, 26, 0.07) 0 1px, transparent 1px 34px); }
html[data-theme="dark"] body:not(.is-protected) .help-card.hs { background: var(--bg-soft); --fg: #f1f3f5; --fg-soft: rgba(226, 232, 240, 0.78); --line: #343b44; --chip: rgba(255, 255, 255, 0.07); }
html[data-theme="dark"] body:not(.is-protected) .help-card.hs :is(.help-name, .help-headline) { color: #f1f3f5; }
html[data-theme="dark"] body:not(.is-protected) .help-card.hs .help-more p { color: rgba(226, 232, 240, 0.78); }
html[data-theme="dark"] body:not(.is-protected) .help-card.hs .hs-art { --hairline-plate: #1b1f24; }
html[data-theme="dark"] body:not(.is-protected) .help-card--cro .help-bg { background-image: repeating-radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 34px); }
html:root body:not(.is-protected) .help-card .help-toggle { color: #1a1a1a; }
html[data-theme="dark"] body:not(.is-protected) .help-card .help-toggle { color: #f1f3f5; }

/* ---- "Complex products, made clear": soft blue panel, no outline, yellow words ---- */
html:root body:not(.is-protected) .work-on { background: var(--panel-soft); border: 0; }
html:root body:not(.is-protected) .hl { color: var(--accent); }
html:root body:not(.is-protected) .work-on-list li + li { border-left-color: rgba(26, 26, 26, 0.12); }
html[data-theme="dark"] body:not(.is-protected) .work-on-list li + li { border-left-color: rgba(255, 255, 255, 0.14); }

/* ---- Process numbers ---- */
html:root body:not(.is-protected) .hw-n { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; font-size: 15px; }
html:root body:not(.is-protected) .hw-steps li { border-top-color: var(--light-gray); }

/* ---- Case studies: soft panel with a row of cards (Upwork "Recommended" pattern) ---- */
.rc { width: 100%; text-align: left; background: var(--panel-soft); border-radius: 24px; padding: 32px 32px 44px; overflow: hidden; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
html:root body:not(.is-protected) .rc-title { margin: 0; font-size: 28px !important; line-height: 1.2 !important; text-align: left; }
.rc-arrows { display: flex; gap: 8px; flex: none; }
.rc-arrow { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--dark); display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.rc-arrow:hover:not(:disabled) { background: rgba(26, 26, 26, 0.07); }
.rc-arrow:disabled { opacity: .3; cursor: default; }
.rc-arrow:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.rc-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch;
  /* room around the cards so the hover shadow and lift are never cut; the row runs to the panel edge so the next cards peek in */
  padding: 20px 32px 44px 24px; margin: -20px -32px -44px -24px; scroll-padding-left: 24px; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-track:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; border-radius: 8px; }
.rc-card { position: relative; flex: 0 0 296px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; background: #fff; border-radius: 16px; text-decoration: none; color: inherit; }
.rc-card:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.rc-img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--panel-tint); }
.rc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-img img.is-blurred { filter: blur(10px); transform: scale(1.12); }
.rc-lock { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #1a1a1a; display: grid; place-items: center; }
html:root body:not(.is-protected) .rc-card-title { margin: 4px 8px 0; font-size: 20px !important; line-height: 1.25 !important; font-weight: 600 !important; }
.rc-card-desc { margin: 0 8px; font-size: 15px; line-height: 1.5; color: var(--gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 8px; }
.rc-tags li { padding: 4px 10px; border: 1px solid var(--light-gray); border-radius: 9999px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--gray); }
.rc-go { position: absolute; top: 50%; left: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; opacity: 0; transform: translate(-50%, -46%) scale(0.92); box-shadow: var(--shadow-accent); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.rc-go .ar-i { margin: 0; }
.rc-img::after { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 26, 0.16); opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.rc-card:is(:hover, :focus-visible) .rc-img::after { opacity: 1; }
.rc-card:is(:hover, :focus-visible) .rc-go { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rc-card:is(:hover, :focus-visible) { z-index: 3; transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-card-hover); }
@media (hover: none) { .rc-go, .rc-img::after { display: none; } }
@media (max-width: 640px) { .rc { padding: 20px 16px 24px; border-radius: 20px; } html:root body:not(.is-protected) .rc-title { font-size: 22px !important; } .rc-card { flex-basis: min(260px, 76vw); } }
@media (prefers-reduced-motion: reduce) { .rc-go { transition: none; } .rc-card:is(:hover, :focus-visible) { transform: none; } }
html[data-theme="dark"] .rc-card { background: #14171a; }
html[data-theme="dark"] .rc-lock { background: #14171a; color: #f1f3f5; }
html[data-theme="dark"] .rc-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }

/* ---- Testimonials: pastel gradient avatars ---- */
html:root body:not(.is-protected) .tm-avatar { color: #1a1a1a; font-weight: 600; box-shadow: none; }
html:root body:not(.is-protected) .tm-card:nth-child(6n+1) .tm-avatar { background: linear-gradient(135deg, #d9c8ff, #ffc8e4); }
html:root body:not(.is-protected) .tm-card:nth-child(6n+2) .tm-avatar { background: linear-gradient(135deg, #bfe0ff, #fff0b3); }
html:root body:not(.is-protected) .tm-card:nth-child(6n+3) .tm-avatar { background: linear-gradient(135deg, #c9f2dc, #cfe3ff); }
html:root body:not(.is-protected) .tm-card:nth-child(6n+4) .tm-avatar { background: linear-gradient(135deg, #ffd9c2, #ffc8d9); }
html:root body:not(.is-protected) .tm-card:nth-child(6n+5) .tm-avatar { background: linear-gradient(135deg, #e1d4ff, #c6f0f5); }
html:root body:not(.is-protected) .tm-card:nth-child(6n) .tm-avatar { background: linear-gradient(135deg, #fff0b3, #ffd1dc); }

/* ---- Contact block: light panel, dark text ---- */
html:root body:not(.is-protected) .contact-block { background: var(--panel-soft); box-shadow: none; border-radius: 24px; }
html:root body:not(.is-protected) .contact-copy h2, html:root body:not(.is-protected) .brief-form :is(label, legend) { color: var(--dark); }
html:root body:not(.is-protected) .contact-copy p, html:root body:not(.is-protected) .brief-form .bf-note { color: var(--gray); }
html:root body:not(.is-protected) .brief-form .bf-note a { color: var(--dark); }
html:root body:not(.is-protected) .brief-form :is(input[type=text], input[type=email], textarea) { background: #fff; border: 1px solid var(--light-gray); border-radius: 12px; color: #1a1a1a; }
html:root body:not(.is-protected) .brief-form :is(input[type=text], input[type=email], textarea):focus { border-color: #1a1a1a; }
html:root body:not(.is-protected) .bf-chips span { background: #fff; border: 1px solid var(--light-gray); color: #1a1a1a; }
html:root body:not(.is-protected) .bf-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }
html:root body:not(.is-protected) .bf-chips input:focus-visible + span { outline-color: #1a1a1a; }
html:root body:not(.is-protected) .brief-form .req { color: var(--dark); }
html[data-theme="dark"] body:not(.is-protected) .brief-form :is(input[type=text], input[type=email], textarea) { background: #14171a; border-color: #343b44; color: #f1f3f5; }
html[data-theme="dark"] body:not(.is-protected) .bf-chips span { background: #14171a; border-color: #343b44; color: #f1f3f5; }
html[data-theme="dark"] body:not(.is-protected) .bf-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #1a1a1a; }


/* ============================ Buttons: pink glow, small lift, press ============================ */
html:root body:not(.is-protected) :is(.btn-dark, .btn-dark.mb-solid.mb-solid.mb-solid.mb-solid, .btn-dark.mb-solid.mb-solid.mb-solid.mb-inv, .cs-access-btn, .cr-contact-submit) {
  box-shadow: var(--shadow-accent) !important;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
html:root body:not(.is-protected) :is(.btn-dark, .btn-dark.mb-solid.mb-solid.mb-solid.mb-solid):is(:hover, :focus-visible) { box-shadow: var(--shadow-accent-hover) !important; }
html:root body:not(.is-protected) :is(.btn-dark, .btn-dark.mb-solid.mb-solid.mb-solid.mb-solid):active { box-shadow: 0 4px 6px rgba(251, 100, 182, 0.25) !important; transform: scale(0.98); }
html:root body:not(.is-protected) .btn-dark:is(:hover):not(.hs-go):not(.help-card .btn-dark) { transform: translateY(-1px); }
html:root body:not(.is-protected) :is(.btn-outline-dark, .btn-outline) { transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
html:root body:not(.is-protected) :is(.btn-outline-dark, .btn-outline):active { transform: scale(0.98); }
.rc-go { box-shadow: var(--shadow-accent); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.rc-go:hover { box-shadow: var(--shadow-accent-hover); }
html:root .ck-b .ck-yes { box-shadow: var(--shadow-accent); }
html:root body:not(.is-protected) :is(.blog-tab.active, .cs-tab.active) { box-shadow: var(--shadow-accent); }
/* cards and chips share the same timing */
html:root body:not(.is-protected) :is(.rc-card, .cs-card, .bcard, .pd-card, .tm-card, .cp-related, .faq-tab, .bf-chips span, .blog-tab, .cs-tab) { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
html:root body:not(.is-protected) :is(.bcard, .cp-related):active { transform: scale(0.995); }
.rc-card:active { transform: translateY(-3px) scale(1.01); }
html:root body:not(.is-protected) .cp-related:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { html:root body:not(.is-protected) * { transition-duration: 0.01ms !important; } }

/* ---- Blog: "Read Article" turns pink on hover ---- */
html:root body:not(.is-protected) :is(.post-more, .bcard-more) { transition: gap .3s ease, color var(--dur) var(--ease); }
html:root body:not(.is-protected) :is(.post:is(:hover, :focus-visible) .post-more, .bcard:is(:hover, :focus-visible) .bcard-more, .post-more:hover, .bcard-more:hover) { color: var(--accent); }

/* ============================ Clickable text turns pink on hover / keyboard focus ============================ */
/* text links: nav, footer, breadcrumbs, contents list, text buttons, links inside paragraphs, lists, tables and FAQ answers */
html:root body:not(.is-protected) :is(
  a.link-btn, a.pd-link, a.pd-card-link, a.cs-card-link, a.footer-legal, a.footer-h, a.footer-name,
  .nav-links a:not(.nav-cta), .mobile-menu-links a, .footer-col a, .footer-links a, button.footer-legal,
  .cs-crumbs a, .cs-side a, .toc a,
  main :is(p, li, td, th, figcaption, blockquote, summary, dd) a:not(.btn-dark):not(.btn-outline-dark):not(.btn-outline):not(.cp-related):not(.rc-card),
  .bf-note a, .ck-p a
):is(:hover, :focus-visible) { color: var(--accent) !important; }
html:root body:not(.is-protected) :is(.nav-links a.active, .mobile-menu-links a.active):is(:hover, :focus-visible) { color: var(--accent) !important; }
html:root body:not(.is-protected) a.link-btn { transition: color var(--dur) var(--ease); }
/* whole-card links: the title (and the "read more" line) turns pink when the card is hovered */
html:root body:not(.is-protected) :is(
  .rc-card:hover .rc-card-title, .rc-card:focus-visible .rc-card-title,
  .bcard:hover .bcard-title, .bcard:focus-visible .bcard-title,
  .post:hover .post-title, .post:focus-visible .post-title,
  .cp-related:hover strong, .cp-related:focus-visible strong, .cp-related:hover > span, .cp-related:focus-visible > span,
  .cs-row:hover a.cs-card-link, .cr-cs3 .cs-card:hover .cs-card-title, .cr-cs3 .cs-card:focus-visible .cs-card-title,
  .help-card:hover .help-name, .help-card:focus-within .help-name
) { color: var(--accent) !important; }
html:root body:not(.is-protected) :is(.rc-card-title, .bcard-title, .post-title, .cp-related strong, a.cs-card-link, .cs-card-title, .help-name) { transition: color var(--dur) var(--ease); }


/* ============================ Home: second polish ============================ */
/* My Services: subtitle on one line (it wraps again on phones) */
@media (min-width: 900px) { html:root body:not(.is-protected) #services .sec-sub { max-width: none; white-space: nowrap; } }

/* FAQ topic tabs: no black stroke anywhere, pink tick, title only */
html:root body:not(.is-protected) .faq-tab { border: 0; background: var(--bg-soft); box-shadow: none; padding-top: 18px; padding-bottom: 18px; align-items: center; }
html:root body:not(.is-protected) .faq-tab:hover { background: #f1f4f8; }
html:root body:not(.is-protected) .faq-tab[aria-selected="true"] { box-shadow: none; background: var(--panel-tint); }
html:root body:not(.is-protected) .faq-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html:root body:not(.is-protected) .faq-tab-check { top: 50%; margin-top: -11px; background: var(--accent); color: #fff; }
@media (max-width: 700px) { html:root body:not(.is-protected) .faq-tab-check { margin-top: -10px; } }
/* lines between questions: 30% lighter */
html:root body:not(.is-protected) .faq-item { border-top-color: rgba(212, 219, 226, 0.5); }
html:root body:not(.is-protected) .faq-item:last-child { border-bottom-color: rgba(212, 219, 226, 0.5); }
html[data-theme="dark"] body:not(.is-protected) .faq-item { border-top-color: rgba(52, 59, 68, 0.5); }
html[data-theme="dark"] body:not(.is-protected) .faq-item:last-child { border-bottom-color: rgba(52, 59, 68, 0.5); }
/* the two "See All" buttons now use the secondary button style */
html:root body:not(.is-protected) .faq-all :is(.btn-outline-dark, .btn-outline) { display: inline-flex; align-items: center; gap: 8px; }
html:root body:not(.is-protected) .faq-all .ar-i { margin: 0; }

/* ============================ Home: third polish ============================ */
html:root body:not(.is-protected) .faq-tab-text strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
html[data-theme="dark"] body:not(.is-protected) .faq-tab { background: var(--bg-soft); }
html[data-theme="dark"] body:not(.is-protected) .faq-tab:hover { background: #20252b; }
html[data-theme="dark"] body:not(.is-protected) .faq-tab[aria-selected="true"] { background: var(--panel-tint); }
@media (max-width: 700px) { html:root body:not(.is-protected) .faq-tab-text strong { font-size: 18px; } }
/* "Available for new projects": no outline, pink text */
html:root body:not(.is-protected) .hero-avail { border: 0; padding-left: 0; color: var(--accent); font-weight: 600; }
/* the page is light now, so the pen cursor stays dark everywhere (it no longer flips to the light pen over dark areas) */
@media (hover: hover) and (pointer: fine) {
  html:not([data-theme="dark"]):root body:not(.is-protected), html:not([data-theme="dark"]):root body:not(.is-protected) *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    cursor: url('/images/cursor-pen.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen.png') 1x, url('/images/cursor-pen@2x.png') 2x) 2 1, auto !important;
  }
}

/* ======================================================================
   CONSISTENCY PASS
   One set of rules for lines, shadows, arrows, rows, buttons and links.
   ====================================================================== */
body:not(.is-protected) {
  --line: rgba(212, 219, 226, 0.5);
  --shadow-card: 0 6px 18px rgba(26, 26, 26, 0.06);
  --shadow-card-hover: 0 20px 36px rgba(26, 26, 26, 0.12), 0 6px 12px rgba(26, 26, 26, 0.06);
}
html[data-theme="dark"] body:not(.is-protected) { --line: rgba(52, 59, 68, 0.5); --shadow-card-hover: 0 20px 36px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.3); }

/* FAQ topic tick is dark again */
html:root body:not(.is-protected) .faq-tab-check { background: var(--dark); color: var(--white, #fff); }
html[data-theme="dark"] body:not(.is-protected) .faq-tab-check { background: #f1f3f5; color: #14171a; }

/* ---- Arrow buttons: one circle everywhere (case rows, testimonials, carousels) ---- */
html:root body:not(.is-protected) :is(.arrow-btn, .ab-arrow, .carousel-btn, .deck-btn, .tm-arrow, .rc-arrow) {
  width: 44px; height: 44px; padding: 0; flex: none; border-radius: 50%; border: 1.5px solid var(--light-gray) !important; background: var(--surface, #fff) !important; color: var(--dark);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
html:root body:not(.is-protected) :is(.arrow-btn, .ab-arrow, .carousel-btn, .deck-btn, .tm-arrow, .rc-arrow):is(:hover, :focus-visible):not(:disabled):not([disabled]) { border-color: var(--accent) !important; color: var(--accent); }
html:root body:not(.is-protected) :is(.arrow-btn, .ab-arrow, .carousel-btn, .deck-btn, .tm-arrow, .rc-arrow):is(:disabled, [disabled]) { opacity: .35; cursor: default; }
html:root body:not(.is-protected) :is(.arrow-btn, .ab-arrow, .carousel-btn, .deck-btn, .tm-arrow, .rc-arrow) svg { width: 20px; height: 20px; }
html:root body:not(.is-protected) :is(.arrow-btn, .ab-arrow, .carousel-btn, .deck-btn, .tm-arrow, .rc-arrow):focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* ---- Rows with arrows ---- */
.rc-head { align-items: flex-start; }
.rc-headtext { min-width: 0; }
.rc-sub { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--gray); max-width: 640px; }
html:root body:not(.is-protected) .rc .rc-title { text-align: left; }
/* testimonials: one row, arrows and counter underneath (the About page version, now on every page) */
.tm-row { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: none !important; mask-image: none !important; -webkit-overflow-scrolling: touch; }
.tm-row::-webkit-scrollbar { display: none; }
.tm-row .tm-track { animation: none !important; transform: none !important; width: max-content; }
.tm-row .tm-card { scroll-snap-align: start; }
.tm-row:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; border-radius: 8px; }
.tm-controls, .ab-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.tm-count, .ab-count { font-size: 13px; letter-spacing: 0.18em; color: var(--gray); font-variant-numeric: tabular-nums; }
html:root body:not(.is-protected) .tm-card { background: var(--surface, #fff); border: 1px solid var(--light-gray); box-shadow: none; border-radius: 24px; }
html[data-theme="dark"] body:not(.is-protected) .tm-card { background: var(--bg-soft); }

/* ---- Card shadows: one soft shadow on hover for every clickable card ---- */
html:root body:not(.is-protected) :is(.pd-card, .cp-related, .help-card, .faq-tab, .cr-contact-card):hover { box-shadow: var(--shadow-card-hover); }
html:root body:not(.is-protected) .rc-card:is(:hover, :focus-visible) { box-shadow: var(--shadow-card-hover); }
html:root body:not(.is-protected) :is(.cs-row.cs-card, .bcard, .post, .pd-card, .cp-related, .rc-card, .tm-card, .help-card) { transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }

/* ---- Cases page and Blog page cards: no outline ---- */
html:root body:not(.is-protected) :is(.cs-row.cs-card, .bcard, .blog-card, .post) { border: 0 !important; box-shadow: none; background: transparent; border-radius: 24px; }
/* case-study cover images: pastel gradients now come from the images themselves */
html:root body:not(.is-protected) .cs-row-img { background: transparent; border: 0; box-shadow: none; }

/* ---- Buttons: three kinds, plus the link inside a paragraph ----
   1 main CTA: filled pink, white text, soft pink shadow          (.btn-dark …)
   2 secondary: transparent, dark text, pink outline               (.btn-outline-dark …)
   3 text button: dark text + arrow, turns pink on hover, no line   (.link-btn, .pd-more, .post-more …)
   4 link in a paragraph: looks like the text, underlined, pink on hover */
html:root body:not(.is-protected) :is(.cs-access-btn) { background: transparent !important; color: var(--dark) !important; border: 1.5px solid var(--accent) !important; box-shadow: none !important; }
html:root body:not(.is-protected) :is(.cs-access-btn):is(:hover, :focus-visible) { background: rgba(251, 100, 182, 0.14) !important; }
html:root body:not(.is-protected) :is(a.link-btn, button.link-btn, .pd-more, .post-more, .bcard-more, .post-share-btn, .pd-work-actions a) {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none !important; background-image: none !important; background-size: 0 !important;
  font-family: 'Allo', system-ui, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.4; color: var(--dark); text-decoration: none !important; cursor: pointer;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
html:root body:not(.is-protected) :is(a.link-btn, button.link-btn, .post-share-btn, .pd-work-actions a):is(:hover, :focus-visible) { color: var(--accent) !important; opacity: 1; background: none !important; }
html:root body:not(.is-protected) :is(a.link-btn, button.link-btn) svg { flex: none; transition: transform var(--dur) var(--ease); }
html:root body:not(.is-protected) :is(a.link-btn, button.link-btn):hover svg { transform: translateX(4px); }
html:root body:not(.is-protected) :is(.pd-card:hover .pd-more, .pd-card:focus-within .pd-more, .post:hover .post-more, .bcard:hover .bcard-more) { color: var(--accent) !important; }
html:root body:not(.is-protected) .pd-card:hover .pd-card-link, html:root body:not(.is-protected) .pd-card:focus-within .pd-card-link { color: var(--accent) !important; }
/* links inside paragraphs, lists, tables and answers */
html:root body:not(.is-protected) main :is(p, li, td, th, dd, figcaption, blockquote, summary, .a) a:not(.btn-dark):not(.btn-outline-dark):not(.btn-outline):not(.link-btn):not(.pd-card-link):not(.cs-card-link):not(.cp-related):not(.rc-card):not(.post):not(.bcard):not(.cs-card):not(nav a):not(.cs-side a):not(.footer a) {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur) var(--ease);
}
html:root body:not(.is-protected) main :is(p, li, td, th, dd, figcaption, blockquote, summary, .a) a:not(.btn-dark):not(.btn-outline-dark):not(.btn-outline):not(.link-btn):not(.pd-card-link):not(.cs-card-link):not(.cp-related):not(.rc-card):not(.post):not(.bcard):not(.cs-card):not(nav a):not(.cs-side a):not(.footer a):is(:hover, :focus-visible) { color: var(--accent) !important; }
/* an inline secondary button inside a sentence */
html:root body:not(.is-protected) .pd-inline-btn { display: inline-flex; align-items: center; vertical-align: middle; margin: 0 4px; padding: 7px 16px !important; font-size: 13px !important; text-decoration: none !important; }
html:root body:not(.is-protected) .pd-inline-btn .ar-i { margin: 0; }

/* ---- Contacts: round contact icons under the subtitle ---- */
.contacts-social { margin-top: 20px; }

/* ======================================================================
   FORMER DARK PANELS: soft blue (#EDF2FD at 65%), dark text
   ====================================================================== */
html:root body:not(.is-protected) :is(.pd-panel, .pd-band, .ab-cta, .ax-cta, .cv, #problem, .ab-band, .callout.is-dark, .cs-live-card.is-dark, .cs-callout-dark, .pd-dark) {
  background: var(--panel-soft) !important; color: var(--dark) !important; --band: var(--panel-soft); box-shadow: none !important;
}
html:root body:not(.is-protected) :is(.pd-band, .ab-band) { box-shadow: 0 0 0 100vmax var(--panel-soft) !important; }
html:root body:not(.is-protected) :is(.pd-panel, .ab-cta, .ax-cta, .cv, .callout.is-dark, .cs-live-card.is-dark, .cs-callout-dark) { border-radius: var(--r-xl, 32px); }
html:root body:not(.is-protected) :is(.pd-panel, .pd-band, .ab-cta, .ax-cta, .cv, #problem, .ab-band, .callout.is-dark, .cs-live-card.is-dark, .cs-callout-dark, .pd-dark) :is(h1, h2, h3, h4, h5, h6, strong, b) { color: var(--strong) !important; }
html:root body:not(.is-protected) :is(.pd-panel, .pd-band, .ab-cta, .ax-cta, .cv, #problem, .ab-band, .callout.is-dark, .cs-live-card.is-dark, .cs-callout-dark, .pd-dark) :is(p, li, small, label, legend, figcaption, dd, .pd-sub, .d, .n, .ab-sub, .ab-stat span):not(a *):not(.btn-dark *):not(.btn-outline-dark *) { color: var(--gray) !important; }
html:root body:not(.is-protected) :is(.pd-panel, .pd-band, #problem, .pd-dark) :is(em) { color: var(--accent) !important; font-style: normal; }
html:root body:not(.is-protected) .pd-panel .pd-incl, html:root body:not(.is-protected) .pd-panel .pd-incl li { border-color: var(--line); }
html:root body:not(.is-protected) .ab-band .ab-stat strong, html:root body:not(.is-protected) .ab-band h2 { color: var(--strong) !important; }
/* the cro "how it works" diagram */
html:root body:not(.is-protected) .cv::before { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.05) 0 1px, transparent 1px 44px); }
html:root body:not(.is-protected) .cv-svg .base { stroke: rgba(26, 26, 26, 0.2); }
html:root body:not(.is-protected) .cv-node { background: #fff; box-shadow: none; border: 1px solid var(--light-gray); backdrop-filter: none; }
html:root body:not(.is-protected) .cv-node b { color: var(--strong) !important; }
html:root body:not(.is-protected) .cv-node small { color: var(--gray) !important; }
html:root body:not(.is-protected) .cv-node b em { color: var(--gray) !important; border-color: var(--light-gray); }
html:root body:not(.is-protected) .cv-ico { background: var(--panel-tint); color: var(--dark); }
html:root body:not(.is-protected) .cv-hub { background: #fff; box-shadow: 0 0 0 1px var(--light-gray); }
html:root body:not(.is-protected) .cv-hub b { color: var(--strong) !important; }
html:root body:not(.is-protected) .cv-hub small { color: var(--gray) !important; }
html:root body:not(.is-protected) .cv-r1 { border-color: rgba(26, 26, 26, 0.22); }
html:root body:not(.is-protected) .cv-r2 { border-color: rgba(251, 100, 182, 0.55); }
html:root body:not(.is-protected) .cv-out { background: #fff; color: var(--dark); box-shadow: var(--shadow-card); border: 1px solid var(--light-gray); }
html:root body:not(.is-protected) .cv-out * { color: inherit; }
html:root body:not(.is-protected) .cv-out-label { color: var(--gray); }
/* problem list */
html:root body:not(.is-protected) .cr-prob-panel { background: #fff; box-shadow: none; border: 1px solid var(--light-gray); }
html:root body:not(.is-protected) .cr-prob-panel * { color: inherit; }
html:root body:not(.is-protected) .cr-prob-panel h3, html:root body:not(.is-protected) .cr-prob-root { color: var(--strong) !important; }
html:root body:not(.is-protected) .cr-prob-panel p { color: var(--gray) !important; }
html:root body:not(.is-protected) .cr-prob-panel em { color: var(--accent) !important; }
/* product design band mock-ups */
html:root body:not(.is-protected) .pd-band .pd-mock { background: #fff !important; box-shadow: none !important; border: 1px solid var(--light-gray); }
html:root body:not(.is-protected) .pd-band .mk .l { fill: #d4dbe2; } html:root body:not(.is-protected) .pd-band .mk .w { fill: #eef1f5; }
html:root body:not(.is-protected) .pd-band .mk .d { fill: var(--accent); } html:root body:not(.is-protected) .pd-band .mk .s { stroke: var(--accent); } html:root body:not(.is-protected) .pd-band .mk .t { fill: #fff; }
html:root body:not(.is-protected) .pd-band .pd-dcard { background: #fff; border: 1px solid var(--light-gray); box-shadow: none; }
/* the About page and contact blocks that used white text */
html:root body:not(.is-protected) :is(.ab-cta, .contact-block) :is(h2, p) { color: inherit; }
html:root body:not(.is-protected) .ab-cta h2, html:root body:not(.is-protected) .contact-copy h2 { color: var(--strong) !important; }
html:root body:not(.is-protected) .ab-cta p, html:root body:not(.is-protected) .contact-copy p { color: var(--gray) !important; }
/* article pages: gold accents become the pink accent */
html:root body:not(.is-protected) .ax { --ax-gold: var(--accent); --ax-gold-soft: rgba(251, 100, 182, 0.14); --ax-on-ink: #fff; }
/* old gold leftovers */
::selection { background: rgba(251, 100, 182, 0.28); color: inherit; }
::-moz-selection { background: rgba(251, 100, 182, 0.28); color: inherit; }
html[data-theme="dark"] ::selection { background: rgba(251, 100, 182, 0.35); }
html[data-theme="dark"] ::-moz-selection { background: rgba(251, 100, 182, 0.35); }
html:root body:not(.is-protected) .req { color: var(--dark) !important; }
html:root body:not(.is-protected) .badge-b2c, html:root body:not(.is-protected) .badge-platform { background: var(--panel-tint); color: var(--dark); border-color: var(--light-gray); }
html:root body:not(.is-protected) .inline-note { background: var(--panel-soft) !important; }
html:root body:not(.is-protected) :is(.blog-card, .bcard, .post, .cs-row) { --tagc: var(--gray) !important; }
html:root body:not(.is-protected) .tm-flag { color: var(--dark); background: var(--panel-tint); }
@media (hover: hover) and (pointer: fine) {
  html[data-theme="dark"] body:not(.is-protected), html[data-theme="dark"] body:not(.is-protected) *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
    cursor: url('/images/cursor-pen-light.png') 2 1, auto !important;
    cursor: image-set(url('/images/cursor-pen-light.png') 1x, url('/images/cursor-pen-light@2x.png') 2x) 2 1, auto !important;
  }
}

/* ======================================================================
   TYPE: one scale, one colour for every heading
   H1 hero 56/44/36 · H1 page 40/32 · H2 section 36/28 · H2 article 28/24 · H3 card 24/22 · H3 small 20/18 · captions 14
   ====================================================================== */
html:root body:not(.is-protected) main :is(h1, h2, h3, h4, h5, h6) { color: var(--strong); font-family: 'Allo', system-ui, sans-serif; }
html:root body:not(.is-protected) main h1#hx-title { font-weight: 600 !important; letter-spacing: -0.03em !important; font-size: 56px !important; line-height: 1.08 !important; }
@media (max-width: 960px) { html:root body:not(.is-protected) main h1#hx-title { font-size: 44px !important; } }
@media (max-width: 640px) { html:root body:not(.is-protected) main h1#hx-title { font-size: 36px !important; } }
html:root body:not(.is-protected) main h4 { font-family: 'Allo', system-ui, sans-serif !important; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: none; color: var(--gray); }
html:root body:not(.is-protected) main :is(h2, h3, h4, h5, h6) { font-weight: 600; }
/* captions */
html:root body:not(.is-protected) :is(figcaption, .caption, .fig figcaption) { font-size: 14px; line-height: 1.5; color: var(--gray); }

/* ---- Icon tiles: one background colour, dark icon ---- */
html:root body:not(.is-protected) :is(.pd-ico, .pd-hero-tile, .help-icon-tile, .cr-contact-ico, .cv-ico) { background: var(--panel-tint) !important; color: var(--dark) !important; box-shadow: none !important; }
html:root body:not(.is-protected) :is(.pd-ico, .pd-hero-tile, .help-icon-tile, .cr-contact-ico, .cv-ico) svg { color: var(--dark); }
html:root body:not(.is-protected) :is(.cv, .pd-panel, .pd-band, .ab-cta, .ax-cta, .contact-block, .rc) :is(.pd-ico, .cv-ico, .cr-contact-ico) { background: #fff !important; }
html[data-theme="dark"] body:not(.is-protected) :is(.pd-ico, .pd-hero-tile, .help-icon-tile, .cr-contact-ico, .cv-ico) { background: #232a36 !important; }

/* ---- Leftovers from the dark design ---- */
html:root body:not(.is-protected) :is(.callout.is-dark, .cs-live-card.is-dark) :is(.callout-body, .callout-body *, .cs-live-card-text, p, h3) { color: var(--dark) !important; }
html:root body:not(.is-protected) .an-thirds .is-win, html:root body:not(.is-protected) .an-h.is-win { background: var(--panel-tint); color: var(--dark); box-shadow: none; }
html:root body:not(.is-protected) .an-thirds .is-win * { color: var(--dark); }
html:root body:not(.is-protected) .an-thirds .is-neg { background: rgba(251, 100, 182, 0.18); color: var(--dark); }
html:root body:not(.is-protected) .an-thirds .is-neg * { color: var(--dark); }
/* FAQ page tabs match the Home FAQ tabs */
html:root body:not(.is-protected) .fq-tabs { box-shadow: none; background: var(--bg-soft); }
html:root body:not(.is-protected) .fq-tab { font-family: 'Allo', system-ui, sans-serif; font-weight: 600; }
html:root body:not(.is-protected) .fq-tab[aria-selected="true"] { background: var(--panel-tint); color: var(--dark); box-shadow: none; }

/* ---- type outliers brought onto the scale ---- */
html:root body:not(.is-protected) main :is(.cr-sample, .cr-panel-main, .cr-plan, .cr-contact-card) h3 { font-size: 24px !important; font-weight: 600 !important; line-height: 1.2 !important; }
html:root body:not(.is-protected) main .cr-who2-text h3 { font-size: 36px !important; font-weight: 600 !important; line-height: 1.12 !important; letter-spacing: -0.02em; }
html:root body:not(.is-protected) main h4 { font-size: 12px !important; font-weight: 600 !important; }
/* locked-case button on the Cases page: secondary style, no glow */
html:root body:not(.is-protected) .cs-access-btn.cs-access-btn.cs-access-btn.cs-access-btn.cs-access-btn { box-shadow: none !important; background: transparent !important; }

/* ---- more icon tiles on the same colour ---- */
html:root body:not(.is-protected) :is(.ab-ico, .hx-ico, .hero-ico, .cr-cmp-ico, .cr-call-ico, .theme-toggle) { background: var(--panel-tint) !important; color: var(--dark) !important; box-shadow: none !important; }
html[data-theme="dark"] body:not(.is-protected) :is(.ab-ico, .hx-ico, .hero-ico, .cr-cmp-ico, .cr-call-ico, .theme-toggle) { background: #232a36 !important; color: #f1f3f5 !important; }
html:root body:not(.is-protected) .ab-ico svg { color: var(--dark); }
/* leftovers on the audit page */
html:root body:not(.is-protected) .cr-prob-panel { box-shadow: none !important; }
html:root body:not(.is-protected) .cr-vs-hl { box-shadow: inset 0 0 0 2px var(--accent) !important; }
/* footer rule */
html:root body:not(.is-protected) .footer { border-top: 1.5px solid var(--line); }


/* ======================================================================
   ROUND 4
   ====================================================================== */
body:not(.is-protected) {
  --tertiary: rgba(36, 46, 66, 0.6);
  --shadow-rgb: 104, 134, 200;                       /* a deeper shade of #edf2fd */
  --shadow-card: 0 4px 16px rgba(var(--shadow-rgb), 0.16), 0 1px 3px rgba(var(--shadow-rgb), 0.12);
  --shadow-card-hover: 0 24px 48px -12px rgba(var(--shadow-rgb), 0.34), 0 10px 20px -8px rgba(var(--shadow-rgb), 0.20);
  --cr-green: #f9a8d4;
}
html[data-theme="dark"] body:not(.is-protected) {
  --tertiary: rgba(226, 232, 240, 0.6);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35); --shadow-card-hover: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 10px 20px -8px rgba(0, 0, 0, 0.4);
}
/* Home: availability tag in the tertiary grey */
html:root body:not(.is-protected) .hero-avail { color: var(--tertiary); }
/* Home: My Services cards glide into each other (the shared card transition had dropped the width animation) */
html:root body:not(.is-protected) .help-card.help-card.help-card { transition: flex-grow .6s cubic-bezier(.22, .7, .2, 1), box-shadow .5s ease, background-color var(--dur) var(--ease); }
/* Testimonials: the original slow scrolling row, shadow has room to breathe */
.tm-marquee { width: 100%; overflow: hidden; padding: 28px 0 60px; margin: -16px 0 -44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm-marquee .tm-track { display: flex; width: max-content; animation: tm-scroll 84s linear infinite; }
.tm-marquee:hover .tm-track, .tm-marquee:focus-within .tm-track { animation-play-state: paused; }
.tm-marquee .tm-set { display: flex; gap: 20px; padding-right: 20px; }
@keyframes tm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tm-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } .tm-marquee .tm-track { animation: none; } .tm-marquee .tm-set[aria-hidden="true"] { display: none; } }
html:root body:not(.is-protected) .tm-card { border: 0; box-shadow: var(--shadow-card); }
html:root body:not(.is-protected) .tm-card:hover { box-shadow: var(--shadow-card); }
/* Cases, Blog and Home notes: no card hover. Only the title and the link turn pink. */
html:root body:not(.is-protected) :is(.cs-row.cs-card, .bcard, .blog-card, .post):is(:hover, :focus-visible, :focus-within) { background: transparent; box-shadow: none; transform: none; }
html:root body:not(.is-protected) :is(.cs-row:hover .cs-card-title, .cs-row:hover .link-btn, .cs-row:hover a.cs-card-link, .cs-row:focus-within .cs-card-title) { color: var(--accent) !important; }
html:root body:not(.is-protected) :is(.cs-card-title, .cs-row .link-btn) { transition: color var(--dur) var(--ease); }
html:root body:not(.is-protected) :is(.post-more, .bcard-more) svg { transition: none; transform: none !important; }
html:root body:not(.is-protected) :is(.post:hover, .bcard:hover) :is(.post-more, .bcard-more) { gap: 8px; }
/* Home: Notes head, title and subtitle left, button right */
.sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; width: 100%; text-align: left; }
.sec-head-text { min-width: 0; text-align: left; }
.sec-head-text > * { text-align: left; margin-left: 0; margin-right: 0; }
.sec-head .btn-outline-dark { flex: none; }
@media (max-width: 760px) { .sec-head { flex-direction: column; gap: 20px; } }
/* Numbers in lists and steps: pink everywhere */
html:root body:not(.is-protected) :is(.pd-steps .n, .cr-steps .n, .pd-num, .hw-n, .st-n, .step-n) { color: var(--accent); }
/* Inline text button inside a sentence */
.pd-sub .link-btn, p .link-btn.link-inline { display: inline-flex; vertical-align: baseline; }
/* Find the right fit: more room above the link */
html:root body:not(.is-protected) .pd-svc-compact .pd-card .pd-more { margin-top: 16px; }
/* Bands and framed blocks: a padded rounded panel inside the column, never cut at the text */
html:root body:not(.is-protected) :is(.pd-band, .ab-band, #problem, .pd-panel) { border-radius: var(--r-xl, 32px); padding: 64px 56px; box-shadow: none !important; clip-path: none !important; }
@media (max-width: 760px) { html:root body:not(.is-protected) :is(.pd-band, .ab-band, #problem, .pd-panel) { padding: 40px 20px; } }
/* What you get: cards sit directly on the panel */
html:root body:not(.is-protected) .pd-band .pd-dcard { background: transparent; border: 0; box-shadow: none; }
html:root body:not(.is-protected) .pd-band .pd-dcard .pd-mock { background: #fff !important; border: 0; }
/* Suitable for: no stroke on the tags */
html:root body:not(.is-protected) .hx-set span { border: 0; background: var(--panel-tint); }
/* Other services (sub-service pages): same cards as Find the right fit */
.sp-more .pd-svc-compact { margin-top: 32px; }

/* About: "I help others grow", compact. Title, subtitle and logos left, number right. */
html:root body:not(.is-protected) .ab-band2 { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 48px 56px; }
html:root body:not(.is-protected) .ab-band2 .ab-band2-text { min-width: 0; text-align: left; }
html:root body:not(.is-protected) .ab-band2 :is(h2, .ab-sub) { text-align: left; margin-left: 0; margin-right: 0; }
html:root body:not(.is-protected) .ab-band2 h2 { margin: 0 0 8px; }
html:root body:not(.is-protected) .ab-band2 .ab-sub { margin: 0 0 28px; max-width: 520px; }
html:root body:not(.is-protected) .ab-band2 .ab-logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
html:root body:not(.is-protected) .ab-band2 .ab-logo { height: 36px; display: inline-flex; align-items: center; }
html:root body:not(.is-protected) .ab-band2 .ab-logo img { height: 100%; width: auto; max-width: none; display: block; }
html:root body:not(.is-protected) .ab-band2 .ab-stat { flex: none; align-items: flex-end; text-align: right; }
html:root body:not(.is-protected) .ab-band2 .ab-stat span { max-width: 220px; }
@media (max-width: 760px) { html:root body:not(.is-protected) .ab-band2 { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px 24px; } html:root body:not(.is-protected) .ab-band2 .ab-stat { align-items: flex-start; text-align: left; } }

/* CRO hero: wider text column so the headline sits on two lines */
@media (min-width: 1181px) { html:root body:not(.is-protected) .pd.cr .hx { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 40px; } }
html:root body:not(.is-protected) .pd-sub .link-btn.link-inline { font-size: inherit; line-height: inherit; }
html:root body:not(.is-protected) .ab-band2 .ab-logo:last-child { height: 52px; }
html:root body:not(.is-protected) .cs-row :is(a.cs-card-link, a.cs-card-link:hover, .cs-card-title) { text-decoration: none !important; }
html:root body:not(.is-protected) :is(.pd-incl .n, .pd-panel .pd-incl .n, .pd-steps .n, .cr-steps .n, .pd-num, .hw-n) { color: var(--accent) !important; }

/* Home services: the headline wraps the same way at every card width, so nothing jumps while a card grows */
html:root body:not(.is-protected) .help-card .help-headline { max-width: 270px; }
/* Expanded card (hover / keyboard focus, desktop): the subtitle spans the same width as the extra text below it */
@media (hover: hover) and (min-width: 861px) {
  html:root body:not(.is-protected) .help-card .help-headline { transition: max-width .6s cubic-bezier(.22, .7, .2, 1); }
  html:root body:not(.is-protected) .help-card:is(:hover, .is-hot, :focus-within) .help-headline { max-width: min(var(--more-w), 100%); }
}
html:root body:not(.is-protected) .help-card .help-name { white-space: nowrap; }
/* Case covers: the frame (not the picture) carries the corner radius, so hover zoom never changes it */
html:root body:not(.is-protected) .cs-row-img.is-art { border-radius: 24px; overflow: hidden; background: var(--panel-tint); }
html:root body:not(.is-protected) .cs-row-img.is-art img { object-fit: cover; }
html:root body:not(.is-protected) .cs-row:hover .cs-row-img { box-shadow: none; }
html:root body:not(.is-protected) .cs-row:hover .cs-row-img img { transform: scale(1.05); }
/* About: photo row is manual now, with room for the zoom and a soft shadow that is never cut */
.ab-gal-scroll { overflow-x: auto; scrollbar-width: none; padding: 64px 48px 72px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ab-gal-scroll::-webkit-scrollbar { display: none; }
.ab-gal-scroll .ab-set { padding-right: 0; }
.ab-gal-scroll .ab-tile { scroll-snap-align: start; }
html:root body:not(.is-protected) .ab-gallery { padding: 0; overflow: visible; margin: calc(var(--sec-gap, 128px) - 64px) 0 calc(var(--sec-gap, 128px) - 64px); }
html:root body:not(.is-protected) .ab-gallery .tm-controls { margin-top: -8px; }
html:root body:not(.is-protected) .ab-tile:hover .sq { box-shadow: var(--shadow-card-hover); }
/* About mentor band: logos are not clipped, subtitle on one line */
html:root body:not(.is-protected) .ab-band2 .ab-logo { border-radius: 0; overflow: visible; }
html:root body:not(.is-protected) .ab-band2 .ab-sub { max-width: none; white-space: nowrap; }
@media (max-width: 760px) { html:root body:not(.is-protected) .ab-band2 .ab-sub { white-space: normal; } }
/* "Book a Call" inside a sentence: same size and style as the sentence, underlined, pink on hover, no icon */
html:root body:not(.is-protected) main a.link-btn.link-inline { display: inline; font: inherit !important; letter-spacing: inherit; color: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px; gap: 0; padding: 0; }
html:root body:not(.is-protected) main a.link-btn.link-inline:is(:hover, :focus-visible) { color: var(--accent) !important; }
/* Find the right fit and Other services: the link sits at the bottom of every card */
html:root body:not(.is-protected) .pd-svc-compact .pd-card { display: flex; flex-direction: column; }
html:root body:not(.is-protected) .pd-svc-compact .pd-card .pd-more { margin-top: auto; padding-top: 24px; }
/* What you get: the pictures sit on a soft blue tile, so the white screens and the animated frames can be seen */
html:root body:not(.is-protected) .pd-band .pd-dcard .pd-mock { background: #dce6fa !important; }

/* ======================================================================
   CASE PAGES: head order = breadcrumbs, tags (left) + year (right), title, subtitle, image, then the rest
   ====================================================================== */
html:root body:not(.is-protected) .cs-main .content { display: flex; flex-direction: column; }
html:root body:not(.is-protected) .cs-main .content > .cs-crumbs { order: -20; }
html:root body:not(.is-protected) .cs-main .content > .title-block { order: -19; }
html:root body:not(.is-protected) .cs-main .content > :is(.cover-img, .hero-cover) { order: -18; align-self: stretch; }
html:root body:not(.is-protected) .cs-main .content > .logo-row { order: -17; }
html:root body:not(.is-protected) .cs-main .content > .cs-disclaimer { order: -16; }
html:root body:not(.is-protected) .cs-main .content > .cs-live-card { order: -15; }
html:root body:not(.is-protected) .cs-main .title-block > div:first-child { display: flex; flex-direction: column; }
html:root body:not(.is-protected) .cs-main .title-block .cs-tags { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin: 0 0 20px; padding: 0; list-style: none; }
html:root body:not(.is-protected) .cs-main .title-block .cs-tags .cs-year { margin-left: auto; border: 0; background: none; padding: 0; color: var(--tertiary); font-size: 14px; }
/* small step titles ("Step 3 · …", "Finding 01") are pink on the page, not in the contents list */
html:root body:not(.is-protected) main :is(.sc-kicker, .ax-eyebrow:not(.cp-related *):not(.ax-related-wrap *)) { color: var(--accent); }
/* Testimonials: the same short gap under the section title on every page */
html:root body:not(.is-protected) .tm-marquee { margin-top: 12px !important; }
html:root body:not(.is-protected) #testimonials .tm-marquee { margin-top: -4px !important; }

/* ======================================================================
   BLOG POSTS: same start as case pages: breadcrumbs, tags (left) + date (right), title, subtitle, image
   ====================================================================== */
.ax-crumbs { margin-bottom: 24px; font-size: 15px; line-height: 1.4; color: var(--gray); }
.ax-crumbs ol { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.ax-crumbs li { display: flex; align-items: center; gap: 8px; margin: 0; }
.ax-crumbs li:first-child { flex: none; }
.ax-crumbs li:last-child { min-width: 0; }
.ax-crumbs li:last-child span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-crumbs li + li::before { content: "/"; color: var(--light-gray); }
.ax-crumbs a { color: var(--gray); text-decoration: none; }
.ax-crumbs a:hover { color: var(--accent); }
.ax-crumbs [aria-current] { color: var(--dark); }
html:root body:not(.is-protected) .ax-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
html:root body:not(.is-protected) .ax-meta .ax-date { margin-left: auto; color: var(--tertiary); font-size: 14px; }
html:root body:not(.is-protected) .ax-cover { margin: 8px 0 40px; }
/* the older post layout (100 AI startups) */
html:root body:not(.is-protected) .post-wrap > .post-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
html:root body:not(.is-protected) .post-header .post-tag { order: 1; }
html:root body:not(.is-protected) .post-header .post-date { order: 2; margin: 0 0 0 auto; color: var(--tertiary); font-size: 14px; }
html:root body:not(.is-protected) .post-header .post-share-btn { order: 3; }
html:root body:not(.is-protected) .post-header .post-title { order: 4; flex: 0 0 100%; margin-top: 12px; }
/* case pages: the cover keeps its round corners */
html:root body:not(.is-protected) .cs-main .hero-cover { border-radius: 32px; overflow: hidden; }
html:root body:not(.is-protected) .cs-main .hero-cover img { display: block; width: 100%; height: auto; }
html:root body:not(.is-protected) .cs-main .cover-img { border-radius: 32px; }
html:root body:not(.is-protected) .post-header .post-share-btn { position: static; margin: 0; }

/* ======================================================================
   FINAL CONSISTENCY PASS (see UI-SYSTEM.md, "Spacing, lines, shadows, icons")
   ====================================================================== */
/* ---- Shadows: one structure, the same feel as the main button (two soft layers, no spread), tinted blue ---- */
body:not(.is-protected) {
  --shadow-card: 0 10px 15px rgba(var(--shadow-rgb), 0.12), 0 4px 6px rgba(var(--shadow-rgb), 0.08);
  --shadow-card-hover: 0 14px 20px rgba(var(--shadow-rgb), 0.16), 0 6px 8px rgba(var(--shadow-rgb), 0.10);
}
html[data-theme="dark"] body:not(.is-protected) { --shadow-card: 0 10px 15px rgba(0, 0, 0, 0.35), 0 4px 6px rgba(0, 0, 0, 0.25); --shadow-card-hover: 0 14px 20px rgba(0, 0, 0, 0.45), 0 6px 8px rgba(0, 0, 0, 0.3); }
html:root body:not(.is-protected) :is(.cs-row-lock, .cr-pg.is-cur) { box-shadow: var(--shadow-card); }
html:root body:not(.is-protected) .help-card:is(:hover, .is-hot, :focus-within) { box-shadow: var(--shadow-card-hover); }
/* room around shadowed rows so a shadow is never cut */
html:root body:not(.is-protected) .rc-track { padding: 12px 4px 40px; margin: -12px -4px -40px; }
/* ---- Buttons: same height and stroke width for every pill button ---- */
html:root body:not(.is-protected) :is(.btn-dark, .btn-outline-dark, .btn-outline) { box-sizing: border-box !important; min-height: 42px; border-width: 1.5px !important; border-style: solid !important; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
html:root body:not(.is-protected) .btn-dark { border-color: transparent !important; }
/* text buttons: colour change only, the arrow stays put */
html:root body:not(.is-protected) :is(.pd-card:hover .pd-more svg, a.link-btn:hover svg, .post:hover .post-more svg, .bcard:hover .bcard-more svg, .cs-row:hover .link-btn svg) { transform: none !important; }
/* ---- Icons: two sizes, both circles, one tint ---- */
html:root body:not(.is-protected) :is(.pd-ico, .cr-call-ico, .cr-contact-ico) { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
html:root body:not(.is-protected) :is(.pd-ico, .cr-call-ico, .cr-contact-ico) svg { width: 24px; height: 24px; }
html:root body:not(.is-protected) :is(.hero-ico, .hx-ico, .cr-cmp-ico, .cv-ico) { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
html:root body:not(.is-protected) :is(.hero-ico, .hx-ico, .cr-cmp-ico, .cv-ico) svg { width: 18px; height: 18px; }
/* ---- Tags: one stroke pill ---- */
html:root body:not(.is-protected) :is(.rc-tags li, .cs-row-tags li, .cs-tags li:not(.cs-year), .ax-tag.post-tag) { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; font-size: 13px; line-height: 1; letter-spacing: 0.01em; text-transform: none; border: 1.5px solid var(--light-gray); border-radius: 9999px; background: transparent; color: var(--gray); }
/* ---- Title to subtitle: 16px everywhere ---- */
html:root body:not(.is-protected) main :is(h2, h2.rc-title):has(+ :is(.pd-sub, .sec-sub, .rc-sub, .ab-sub, .cr-contact-sub)) { margin-bottom: 0 !important; }
html:root body:not(.is-protected) main :is(h2, h2.rc-title) + :is(.pd-sub, .sec-sub, .rc-sub, .ab-sub, .cr-contact-sub) { margin-top: 16px !important; }
/* ---- Heading block to content: 40px ---- */
html:root body:not(.is-protected) :is(.sec-block .hw-steps, .sec-block .faq, .sec-block .post-list, .sec-block .help-cards) { margin-top: 24px !important; }
/* these sections are flex columns with a 16px gap already */
html:root body:not(.is-protected) :is(.sec-block, .help-section) > h2 + .sec-sub { margin-top: 0 !important; }
html:root body:not(.is-protected) main .dsg-text { gap: 16px; }
.sp-more .pd-svc-compact { margin-top: 40px; }
/* ---- Lines: one divider (1.5px, 50% grey-blue) ---- */
html:root body:not(.is-protected) :is(.pf-facts, .hw-out, .hw-steps li, .cr-prob-panel li, .cr-prob-root, .up-cta) { border-color: var(--line) !important; }
/* ---- Blog posts: no rule above the cover image ---- */
html:root body:not(.is-protected) .ax-head:has(+ .ax-cover) { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* ---- Outlines: cards 1px, in the same colour ---- */
html:root body:not(.is-protected) :is(.cr-contact-card, .cr-who2, .cr-sample, .dsg-card, .sp-glance, .up-card) { box-shadow: inset 0 0 0 1px var(--light-gray); }

html:root body:not(.is-protected) .ab-ico { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
html:root body:not(.is-protected) .hw-out { border-top-width: 1.5px !important; }
html:root body:not(.is-protected) :is(.pf-list, .pf-facts) { border-top-color: var(--line) !important; }
html:root body:not(.is-protected) .cr-pg { box-shadow: var(--shadow-card) !important; }

/* heading block to the grid below it: 40px */
html:root body:not(.is-protected) main :is(.pd-svc, .pd-del, .pd-steps) { margin-top: 40px !important; }
html:root body:not(.is-protected) main .pd-sub:has(+ :is(.pd-svc, .pd-del, .pd-steps)) { margin-bottom: 0 !important; }
html:root body:not(.is-protected) main :is(.cr-who2-main, .cr-who2-sub) { box-shadow: var(--shadow-card) !important; }
html:root body:not(.is-protected) .pf-col { border-top-color: var(--line) !important; }

/* ======================================================================
   FAQ switch (same element as the Home FAQ) and phones
   ====================================================================== */
.faq-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-tab { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px 48px 18px 18px; border-radius: 18px; color: var(--dark); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.faq-tab-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.faq-tab-text strong { font-size: 20px; font-weight: 600; line-height: 1.2; }
.faq-tab-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .25s ease; }
.faq-tab-check svg { width: 13px; height: 13px; }
.faq-tab[aria-selected="true"] .faq-tab-check { opacity: 1; transform: none; }
.fq .faq-tabs { margin: 36px auto 0; max-width: 820px; width: 100%; }
.fq .faq-tabs + .fq-layout { margin-top: 8px; }
.fq-panels { position: relative; }
@media (max-width: 700px) { .faq-tabs { gap: 10px; } .faq-tab { padding: 14px 34px 14px 14px; } .faq-tab-text strong { font-size: 17px; } .faq-tab-check { top: 12px; right: 10px; width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .faq-tab, .faq-tab-check { transition: none; } }

@media (max-width: 760px) {
  /* Home: benefits line without icons */
  html:root body:not(.is-protected) :is(.hero-trust, .hx-trust) :is(.hero-ico, .hx-ico) { display: none !important; }
  /* Product Design and CRO: no hero picture on phones */
  html:root body:not(.is-protected) .hx.hx-noart-m .hx-visual { display: none; }
  /* Meet the designer card: everything centred */
  html:root body:not(.is-protected) .dsg-card { justify-items: center; text-align: center; }
  html:root body:not(.is-protected) .dsg-card .dsg-text { align-items: center; }
  html:root body:not(.is-protected) .dsg-facts { width: 100%; justify-content: center; margin-top: 12px; gap: 0; flex-wrap: wrap; }
  html:root body:not(.is-protected) .dsg-facts li:first-child { flex: 0 0 100%; justify-content: center; padding: 0; border-bottom: 0; margin-bottom: 14px; }
  html:root body:not(.is-protected) .dsg-facts li:nth-child(n+2) { flex: 0 1 auto; justify-content: center; border-left: 0; padding: 0 8px; margin: 0; font-size: clamp(11px, 3.2vw, 13px); gap: 5px; white-space: nowrap; }
  html:root body:not(.is-protected) .dsg-facts li:nth-child(3) { border-left: 1.5px solid var(--line); }
  html:root body:not(.is-protected) .dsg-facts .dsg-bdg { width: 20px; height: 20px; }
  html:root body:not(.is-protected) .dsg-cta { border-top: 0 !important; padding-top: 0 !important; }
  html:root body:not(.is-protected) .dsg-cta { align-items: stretch; width: 100%; }
  /* Sub-service pages: top label on two lines, no dot */
  .hx-eyebrow .hx-sep { display: none; }
  .hx-eyebrow a, .hx-eyebrow .hx-tail { display: block; }
  /* Cases and Blog: smaller picture, tighter under the menu, tags in one swipeable line */
  html:root body:not(.is-protected) :is(.cs-illus, .blog-illus) { width: 180px; margin-top: 0; }
  html:root body:not(.is-protected) .container:has(> .cs-illus) , html:root body:not(.is-protected) .blog-page { padding-top: 0; }
  html:root body:not(.is-protected) :is(.cs-filter-tabs, .blog-filter-tabs) { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px -8px; padding: 28px 20px 32px; scroll-padding-left: 20px; scroll-padding-right: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  html:root body:not(.is-protected) .blog-filter-tabs { margin-top: -12px; margin-bottom: 4px; padding-top: 24px; }
  html:root body:not(.is-protected) :is(.cs-filter-tabs, .blog-filter-tabs)::after { content: ""; flex: 0 0 1px; }
  html:root body:not(.is-protected) :is(.cs-filter-tabs, .blog-filter-tabs)::-webkit-scrollbar { display: none; }
  html:root body:not(.is-protected) :is(.cs-tab, .blog-tab) { flex: none; scroll-snap-align: start; white-space: nowrap; }
  html:root body:not(.is-protected) .cs-row .cs-row-tags { display: none; }
  html:root body:not(.is-protected) .cs-row a.link-btn { gap: 0 !important; }
  html:root body:not(.is-protected) .cs-row a.link-btn svg { margin-left: 5px !important; }
  .blog-head-title .m-line { display: block; }
}

/* line break that exists on phones only */
.m-only { display: none; }
@media (max-width: 760px) { .m-only { display: inline; } }

/* phones: in the "Want evidence before you redesign?" style cards the button sits at the bottom */
@media (max-width: 760px) {
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) { display: flex; flex-direction: column; gap: 24px; }
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) .pd-split-head { display: contents; }
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) .pd-split-head > :is(h2, .pd-sub) { order: 1; margin: 0; }
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) .pd-incl { order: 2; }
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) .pd-split-head :is(.pd-actions, .pd-bridge-act) { order: 3; margin: 0; width: 100%; }
  html:root body:not(.is-protected) .pd-panel:has(.pd-incl) .pd-split-head :is(.pd-actions, .pd-bridge-act) .btn-dark { width: 100%; }
}
html:root body:not(.is-protected):not(.x):not(.y):not(.z) main :is(#problem, .pd-panel).pd-panel .pd-incl.pd-incl li > span.n.n:not(.q):not(.q2):not(.q3):not(.q4):not(.q5):not(.q6):not(.q7):not(.q8) { color: var(--accent) !important; }

/* Price in service cards: bold, in a light chip with the same tint as the icon tiles */
html:root body:not(.is-protected) .pd-card .pd-price { display: inline-block; align-self: flex-start; width: fit-content; margin: 8px 0 0; padding: 8px 14px; border-radius: 12px; background: var(--panel-tint); font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--dark); }
html:root body:not(.is-protected) .pd-card .pd-price span { color: var(--dark); font-weight: 600; }
html:root body:not(.is-protected) .pd-svc-compact .pd-card .pd-price { margin-top: auto; padding-top: 8px; }
html:root body:not(.is-protected) .pd-svc-compact .pd-card .pd-price + .pd-more { margin-top: 16px; padding-top: 0; }

/* ======================================================================
   iPhone safety: nothing may make the page wider than the screen.
   Safari on iPhone can pan sideways when a moving or hidden element sticks out;
   Chrome on Android does not. "clip" cuts the overflow without turning the page into a scroll box.
   ====================================================================== */
html { overflow-x: clip; max-width: 100%; }
body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
/* rows that move sideways are clipped and isolated, so Safari cannot let them widen the page */
.tm-marquee, .hx-suit-scroll, .ab-gallery, .rc, .cr-cmp-wrap { contain: paint; }
.tm-marquee .tm-track, .hx-track { will-change: transform; }
@media (max-width: 760px) {
  img, svg, video, canvas, iframe { max-width: 100%; }
}
/* case page: the three "next steps" columns stack on phones */
@media (max-width: 860px) { .cp-seq { grid-template-columns: 1fr; } }

/* ======================================================================
   TABLET, PORTRAIT (iPad 810 x 1080 and similar): 769 to 1024 px wide, held upright.
   Nothing here changes desktop or phones.
   ====================================================================== */
.t-only { display: none; }
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .t-only { display: inline; }
  /* menu: hamburger instead of the full list, so nothing overlaps and the theme switch stays on screen */
  .nav-links { display: flex; order: 2; margin-left: 0; gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-hamburger { display: flex; order: 3; margin-left: 14px; }
  .nav { justify-content: flex-start; }
  .nav > a:first-child { order: 0; }
  .theme-toggle { order: 1; margin-left: auto; margin-right: 12px; }
  /* hero picture hidden on the two service pages */
  html:root body:not(.is-protected) .hx.hx-noart-m .hx-visual { display: none; }
  /* Home, My Services: two cards side by side */
  html:root body:not(.is-protected) .help-cards { flex-direction: row; align-items: flex-start; gap: 16px; }
  html:root body:not(.is-protected) .help-card.help-card.help-card { flex: 1 1 0 !important; min-width: 0; padding: 32px 26px 28px; }
  /* service cards: one row, two and a bit visible, swipe for the rest */
  html:root body:not(.is-protected) .pd-svc:not(.pd-svc-compact) { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 8px 4px 32px; margin: -8px -4px -32px; -webkit-overflow-scrolling: touch; }
  html:root body:not(.is-protected) .pd-svc:not(.pd-svc-compact)::-webkit-scrollbar { display: none; }
  html:root body:not(.is-protected) .pd-svc:not(.pd-svc-compact) .pd-card { flex: 0 0 300px; scroll-snap-align: start; padding: 24px 22px; }
  /* Find the right fit and Other services: all three in one line, a little more compact */
  html:root body:not(.is-protected) .pd-svc-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html:root body:not(.is-protected) .pd-svc-compact .pd-card { padding: 20px 18px; grid-column: auto !important; }
  html:root body:not(.is-protected) .pd-svc-compact .pd-card h3 { font-size: 19px; }
  /* Hi, I'm Olga card: logo, Job Success and Top Rated Plus on one line */
  html:root body:not(.is-protected) .dsg-facts { flex-wrap: nowrap; gap: 0; }
  html:root body:not(.is-protected) .dsg-facts li { padding: 0 12px; font-size: 14px; gap: 7px; }
  html:root body:not(.is-protected) .dsg-facts img { width: 34px; }
  html:root body:not(.is-protected) .dsg-bdg { width: 26px; height: 26px; }
  /* About, I help others grow: subtitle on two lines, clear of the number */
  html:root body:not(.is-protected) .ab-band2 { gap: 24px; padding: 40px 32px; }
  html:root body:not(.is-protected) .ab-band2 .ab-band2-text { flex: 1 1 auto; }
  html:root body:not(.is-protected) .ab-band2 .ab-sub { white-space: nowrap; max-width: none; font-size: 15px; }
  html:root body:not(.is-protected) .ab-band2 .ab-stat span { max-width: 150px; }
  html:root body:not(.is-protected) .ab-band2 .ab-stat strong { font-size: 72px; }
}

/* paused until the mock-up is on screen (see the small script on the Product Design page) */
html.mock-pause .pd-mock:not(.is-live) * { animation-play-state: paused !important; }

/* "What you get" pictures: the height comes from the picture's own shape (320 x 200), not from a percentage.
   Safari on iPad turned the old percentage height into a grey block many screens tall. */
html:root body:not(.is-protected) .pd-mock { display: block; aspect-ratio: auto; height: auto; }
html:root body:not(.is-protected) .pd-mock > svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; max-width: 100%; }
html:root body:not(.is-protected) .pd-del { align-items: start; }


/* ======================================================================
   TOUCH SCREENS (iPad, iPhone): taps go through on the first touch, no double-tap zoom, jumps are instant
   ====================================================================== */
html { touch-action: manipulation; }
a, button, summary, label, [role="button"], [role="tab"], input, select, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(251, 100, 182, 0.18); }
@media (hover: none), (pointer: coarse) {
  html { scroll-behavior: auto !important; }
  /* a hover look must never swallow the first tap on a touch screen */
  html:root body:not(.is-protected) :is(.btn-dark, .btn-outline-dark, .btn-outline, .link-btn, .pd-card, .rc-card, .cs-row, .bcard, .post):hover { transform: none !important; }
}
/* every place a link can jump to stops below the fixed menu */
html:root main [id] { scroll-margin-top: 96px; }

/* Case pages: "Step 1 · …" / "Scenario 2 · …" labels are pink (the earlier pink rule lost to the grey eyebrow rule) */
html:root body:not(.is-protected) main .sc-kicker { color: var(--accent) !important; }

/* Footer: Behance · Medium · Upwork as text links under the three circles */
html:root body:not(.is-protected) .footer-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; font-family: 'Allo', sans-serif; font-size: 13px; line-height: 1.4; color: var(--gray); }
html:root body:not(.is-protected) .footer .footer-profiles a { padding: 3px 0; font-family: 'Allo', sans-serif; font-size: 13px; color: var(--gray); text-decoration: none; }
html:root body:not(.is-protected) .footer .footer-profiles a:is(:hover, :focus-visible) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* Dark theme, "Many signals. One diagnosis." diagram: dark cards and readable text (they were white with light text) */
html[data-theme="dark"] body:not(.is-protected) .cv-node { background: var(--bg-soft); border-color: #343b44; }
html[data-theme="dark"] body:not(.is-protected) .cv-node b { color: #f1f3f5 !important; }
html[data-theme="dark"] body:not(.is-protected) .cv-node small { color: rgba(226, 232, 240, 0.78) !important; }
html[data-theme="dark"] body:not(.is-protected) .cv-node b em { color: rgba(226, 232, 240, 0.78) !important; border-color: #4a525c; }
html[data-theme="dark"] body:not(.is-protected) .cv :is(.cv-ico) { background: #232a36 !important; color: #f1f3f5 !important; }
html[data-theme="dark"] body:not(.is-protected) .cv-hub { background: var(--bg-soft); box-shadow: 0 0 0 1px #343b44; }
html[data-theme="dark"] body:not(.is-protected) .cv-hub b { color: #f1f3f5 !important; }
html[data-theme="dark"] body:not(.is-protected) .cv-hub small { color: rgba(226, 232, 240, 0.78) !important; }
html[data-theme="dark"] body:not(.is-protected) .cv-r1 { border-color: rgba(226, 232, 240, 0.3); }
html[data-theme="dark"] body:not(.is-protected) .cv-out { background: var(--bg-soft); color: #f1f3f5; border-color: #343b44; box-shadow: none; }
html[data-theme="dark"] body:not(.is-protected) .cv-out * { color: inherit; }
html[data-theme="dark"] body:not(.is-protected) .cv-out-label { color: rgba(226, 232, 240, 0.7); }
html[data-theme="dark"] body:not(.is-protected) .cv-svg .base { stroke: rgba(226, 232, 240, 0.22); }
html[data-theme="dark"] body:not(.is-protected) .cv::before { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 44px); }

/* Dark theme, articles: text on the white number circles / filled shapes is dark (the skin set it to white, so numbers vanished) */
html[data-theme="dark"] body:not(.is-protected) .ax { --ax-on-ink: #171717; }
