/* DigiSavvy — overrides of ACSS assignment tokens (loads after ACSS core). */
:root {
  --content-width: 77.5rem;            /* 1240px */
  --body-bg-color: #F5F3ED;
  --body-color: #15130E;
  --text-dark: #15130E;
  --text-dark-muted: #544E44;
  --bg-light: #ECE8DE;
  --bg-ultra-dark: #15130E;
  --text-light: #F3EFE6;
  --border-color: rgba(21, 19, 14, .13);
  --border-color-strong: rgba(21, 19, 14, .26);
  --primary-hover: #0AB5C2;
  --accent-hover: #B5392F;
  --primary-ultra-dark: #066971;
  --accent: #CE423B;
  --danger: #CE423B;
  --header-height: 82px;
}
/* headings: force the Clash Display heading family everywhere */
h1, h2, h3, h4, h5, h6,
.hero__title, .cta__title, .proof__title, .statement__title, .hwp__title {
  font-family: var(--heading-font-family);
  font-weight: 700;
}

/* sticky nav fix: the FSE template-part wrapper is the real direct child of <body>,
   so it must be the sticky element (the inner .site-header parent is only nav-height tall). */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-inline: 0;
}
/* account for the WP admin bar height while logged in so the nav sticks below it */
body.admin-bar header.wp-block-template-part { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar header.wp-block-template-part { top: 46px; }
}

/* ---- Hero atmosphere: keep the drifting blobs inside the SVG shape ----
   .hero__blobs filled the whole hero rect, so blobs bled past the diagonal/
   dome edge onto the section bg. Clip the blob layer to the same shape var
   the .hero__shape uses (the var inherits from .hero--*, .jhead, .post-head,
   .phead), so blobs only ever show within the shape silhouette. */
.hero__blobs { clip-path: var(--hero-shape, var(--shape-v)); }

/* ---- Pricing rows: hover affordance without a layout/width shift ----
   The original animated padding-left on the whole .prow, which reflowed the
   row and could trigger a horizontal scrollbar (parent "width wobble").
   Neutralize that and slide only the inner left column via transform. */
.prow:hover { padding-left: 0; }
.prow__l { transition: transform .25s var(--ease); }
.prow:hover .prow__l { transform: translateX(12px); }

/* When Build it / Grow it groups share one section, separate the 2nd head. */
.plist + .sec-head { margin-top: var(--space-xl); }

/* Testimonials: ACSS's blockquote component is display:flex, which turns the
   quote's text and accent <em> into separate flex items — stacking them with
   an awkward gap. Force the blockquote back to a normal text block so it flows
   as one paragraph with just the colored <em> emphasis inline. */
.quote blockquote,
.lp-quote blockquote { display: block; }

/* ===================== WS Forms — match the bespoke form design ===================== */
/* Brand primary button (mirrors .btn--primary) */
.card .wsf-button,
.nl-card .wsf-button {
  font-family: var(--text-font-family) !important; font-weight: 600 !important; font-size: 1.06rem !important;
  line-height: 1.2; padding: 16px 30px !important; border: 0 !important; border-radius: 999px !important;
  background: var(--primary) !important; color: var(--text-dark) !important; cursor: pointer;
  transition: background .18s ease;
}
.card .wsf-button:hover,
.nl-card .wsf-button:hover { background: var(--primary-hover) !important; }

/* hide WS Form required asterisk (design has none) */
.card .wsf-required-wrapper, .nl-card .wsf-required-wrapper { display: none !important; }

/* ---- Book form (.card): single-column labeled fields ---- */
.card .wsf-form { margin: 0; }
.card .wsf-form .wsf-fields { display: grid !important; grid-template-columns: 1fr !important; gap: var(--space-s) !important; }
.card .wsf-form .wsf-tile { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; grid-column: 1 / -1 !important; }
.card .wsf-label {
  display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-dark-muted); margin: 0 0 8px;
}
.card .wsf-field {
  width: 100% !important; box-sizing: border-box; font-family: var(--text-font-family) !important; font-size: 1rem !important;
  padding: 14px 16px !important; border: 1px solid var(--border-color-strong) !important; border-radius: 10px !important;
  background: var(--body-bg-color) !important; color: var(--text-dark) !important;
}
.card textarea.wsf-field { min-height: 104px !important; resize: vertical; }
.card .wsf-field::placeholder { color: var(--text-tertiary) !important; }
.card .wsf-field:focus { outline: none; border-color: var(--cyan-fill) !important; box-shadow: 0 0 0 3px rgba(10,181,194,.22) !important; }
.card .wsf-button { width: 100% !important; margin-top: 4px; }

/* ---- Newsletter (.nl-card): inline email + button on dark ---- */
.nl-card .wsf-form { margin: 0; }
.nl-card .wsf-form .wsf-fields { display: flex !important; gap: 10px !important; flex-wrap: wrap; align-items: center; }
.nl-card .wsf-tile { flex: 1 1 200px !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
.nl-card .wsf-tile:has(.wsf-button) { flex: 0 0 auto !important; }
.nl-card .wsf-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-card .wsf-field {
  width: 100% !important; box-sizing: border-box; font-family: var(--text-font-family) !important; font-size: 1rem !important;
  padding: 14px 16px !important; border-radius: 10px !important; border: 1px solid rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.06) !important; color: var(--text-light) !important;
}
.nl-card .wsf-field::placeholder { color: rgba(243,239,230,.5) !important; }
.nl-card .wsf-button { width: auto !important; }

/* Pricing rows (Build it / Grow it): stagger the reveal so they cascade in
   instead of popping together. Delay is applied only on .is-in (the fade-in),
   not the initial hide, so there's no load flash. nth-child resets per .plist. */
.plist .prow:nth-child(1) { --row-i: 0; }
.plist .prow:nth-child(2) { --row-i: 1; }
.plist .prow:nth-child(3) { --row-i: 2; }
.plist .prow:nth-child(4) { --row-i: 3; }
.plist .prow:nth-child(5) { --row-i: 4; }
.plist .prow:nth-child(6) { --row-i: 5; }
.plist .prow:nth-child(7) { --row-i: 6; }
.plist .prow:nth-child(8) { --row-i: 7; }
.is-reveal-ready .plist .prow.reveal.is-in { transition-delay: calc(var(--row-i, 0) * 0.09s); }

/* Red CTA (.btn--accent): animated ring that expands + fades in on hover. */
.btn--accent { position: relative; overflow: visible; }
.btn--accent::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 2px solid oklch(from var(--accent) l c h / 0);
  pointer-events: none;
  transition: inset .3s ease, border-color .3s ease;
}
.btn--accent:hover::after {
  inset: -6px;
  border-color: oklch(from var(--accent) l c h / 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .btn--accent::after, .btn--accent:hover::after { transition: none; }
}

/* Fix: .prow sets `transition: padding-left` in dgs-core, which clobbered the
   .reveal transition (opacity/transform/filter) — so the rows snapped in with
   no fade/blur. Restore the reveal transition for .prow rows (higher specificity). */
.prow.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }

/* ===== Jump links (ACF "Show jump links" toggle on standard pages) ===== */
/* Sticky in-page section nav, sits just below the main header as you scroll. */
.jumplinks {
  position: sticky; top: var(--header-height); z-index: 50;
  background: color-mix(in oklch, var(--body-bg-color) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-block: 1px solid var(--border-color);
}
body.admin-bar .jumplinks { top: calc(var(--header-height) + 32px); }
@media screen and (max-width: 782px) { body.admin-bar .jumplinks { top: calc(var(--header-height) + 46px); } }
.jumplinks__inner {
  display: flex; gap: var(--space-m); align-items: stretch;
  max-width: var(--content-width); margin-inline: auto;
  padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none;
}
.jumplinks__inner::-webkit-scrollbar { display: none; }
.jumplinks__link {
  white-space: nowrap; text-decoration: none; font-family: var(--text-font-family);
  font-size: .9rem; font-weight: 600; color: var(--text-dark-muted);
  padding: 14px 2px; border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.jumplinks__link:hover { color: var(--text-dark); }
.jumplinks__link.is-active { color: var(--text-dark); border-bottom-color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .jumplinks__link { transition: none; } }

/* anchored headings clear the sticky header + jump bar when jumped/scrolled to */
/* high specificity so it beats ACSS's :where() scroll-margin reset */
body.dgs-jumplinks h2[id] { scroll-margin-top: calc(var(--header-height) + 64px); }

/* free <main> from the theme's overflow:hidden so the sticky jump bar can stick
   (scoped to jump-link pages; heroes clip their own blobs, body clips horizontal). */
body.dgs-jumplinks main#main { overflow: visible; }
/* let <main> go fully visible (above) so sticky works & vertical scroll isn't clamped;
   clip the one section whose decorative shape bleeds past the viewport instead. */
body.dgs-jumplinks .cta { overflow: clip; }

/* ── Legal pages: "On this page" TOC goes horizontal on mobile ──
   The sidebar list becomes a sticky, horizontally-scrolling chip bar (same pattern
   as .jumplinks) instead of a stacked card. Legal pages don't get the dgs-jumplinks
   body class, so free <main> here too (and clip the bleeding .cta shape) so sticky holds. */
@media (max-width: 860px) {
  main#main:has(.legal) { overflow: visible; }
  main#main:has(.legal) .cta { overflow: clip; }

  .legal__toc {
    position: sticky; top: var(--header-height); z-index: 40;
    display: flex; gap: var(--space-m); align-items: stretch;
    margin: 0 0 var(--space-m); padding: 0 var(--gutter);
    width: 100vw; margin-inline: calc(50% - 50vw);   /* full-bleed edge to edge */
    border: 0; border-radius: 0; border-block: 1px solid var(--border-color);
    background: color-mix(in oklch, var(--body-bg-color) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  }
  .legal__toc::-webkit-scrollbar { display: none; }
  .legal__toc h4 { display: none; }                  /* drop the "On this page" label */
  .legal__toc a {
    flex: 0 0 auto; white-space: nowrap;
    border-left: 0; padding: 14px 2px;
    border-bottom: 2px solid transparent;
    font-size: .9rem; font-weight: 600; color: var(--text-dark-muted);
  }
  .legal__toc a:hover { color: var(--text-dark); border-color: transparent; }
  body.admin-bar .legal__toc { top: calc(var(--header-height) + 46px); }
}

/* ── Pricing CTA: hide the static dot-circle SVG; the Dot Field component (the
   animated canvas dots) plays that decorative role here. The component itself is
   fully self-styled via JS, so no layout CSS is needed for it. */
.page-id-8 .cta .svg-shape-circle { display: none; }
/* Give the section vertical room so the circular dot field isn't clipped top/
   bottom, and center the content so the circle stays centered on the headline. */
.page-id-8 .cta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Split hero (.hero--split): text left, image right, with blurry blobs + a
   ~60° slanted brand shape weighted to the right ~70%. Built for the AI
   Disclosure page; reusable on any page. Placeholder .hero__media is swappable. */
.hero--split {
  position: relative; overflow: clip;
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(var(--header-height) + var(--section-space-s));
  padding-bottom: var(--section-space-s);
}
.hero--split .wrap { position: relative; z-index: 2; }
.hero--split .hero__split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--space-xl); align-items: center;
}
.hero--split .hero__copy { max-width: 32rem; }
.hero--split .hero__copy h1 { margin-top: var(--space-xs); }

/* placeholder image frame — swap the background for a real <img> in Etch */
.hero--split .hero__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 70% 18%, var(--cyan-soft), transparent 60%),
    linear-gradient(150deg, #e9f6fb, #f5f3ed);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(21, 19, 14, .10);
}

/* the slanted brand shape, weighted to the right ~70%, over the blobs */
.hero--split .hero__shape {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(245deg,
    color-mix(in oklch, var(--cyan-fill) 26%, transparent),
    color-mix(in oklch, var(--cyan-fill) 9%, transparent) 64%,
    transparent);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 66% 100%);   /* ~60° slant leaning right, under the image */
}
/* a crisp slant edge line for definition */
.hero--split .hero__shape::after { content: none; }
/* blobs clustered on the right, behind the shape — bigger + more present */
.hero--split .hero__blobs { clip-path: polygon(40% 0, 100% 0, 100% 100%, 60% 100%); z-index: -1; }
.hero--split .hero__blob--1 { width: 34vw; height: 34vw; left: auto; right: 2vw;  top: -10vw; background: radial-gradient(circle, var(--blob-cyan), transparent 66%); }
.hero--split .hero__blob--2 { width: 28vw; height: 28vw; right: -8vw; top: 6vw;  background: radial-gradient(circle, var(--blob-mint), transparent 66%); }
.hero--split .hero__blob--3 { width: 24vw; height: 24vw; left: auto; right: 26vw; bottom: -12vw; background: radial-gradient(circle, var(--blob-warm), transparent 66%); }

@media (max-width: 860px) {
  .hero--split .hero__split { grid-template-columns: 1fr; gap: var(--space-l); }
  .hero--split .hero__shape, .hero--split .hero__blobs { clip-path: none; opacity: .55; }
}

/* AI Disclosure body */
.ai-body { max-width: 50rem; }
.ai-body .lead { font-size: var(--text-xl); color: var(--text-dark); line-height: 1.5; margin-bottom: var(--space-l); }
.ai-list { list-style: none; margin: var(--space-s) 0 var(--space-l); padding: 0; display: grid; gap: var(--space-s); }
.ai-list li { padding-left: var(--space-m); border-left: 2px solid var(--cyan-fill); }
.ai-list li strong { display: block; font-family: var(--heading-font-family); font-weight: 600; letter-spacing: -.01em; font-size: 1.15rem; margin-bottom: 2px; }
.ai-list--no li { border-left-color: var(--accent); }
.ai-body h2 { font-size: 1.7rem; text-transform: none; letter-spacing: -.02em; margin: var(--space-l) 0 var(--space-xs); }
.ai-body p { color: #2a261f; line-height: 1.7; font-size: 1.08rem; margin-bottom: var(--space-s); }
.ai-body .ai-step { margin-bottom: var(--space-m); max-width: 46rem; }
.ai-body .ai-step strong { color: var(--text-dark); }
.ai-body .ai-intro2 { color: var(--text-dark-muted); margin-bottom: var(--space-m); }

/* ── AI Disclosure (layout variant): cards + numbered steps + dark statement,
   instead of the bulleted-list version. Classes namespaced .ai2-*. ── */
.ai2 { max-width: var(--content-width); }
.ai2 .lead { font-size: var(--text-xl); color: var(--text-dark); line-height: 1.5; max-width: 46rem; }
.ai2 .ai-intro2 { color: var(--text-dark-muted); max-width: 46rem; margin-top: var(--space-xs); }
.ai2-sec__head { margin-bottom: var(--space-m); }
.ai2-sec__head h2 { font-size: 1.7rem; text-transform: none; letter-spacing: -.02em; }
.ai2-sec__head .eyebrow { color: var(--cyan-bright); margin-bottom: 6px; }

.ai2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
.ai2-card { position: relative; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: var(--space-m); overflow: hidden; }
.ai2-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cyan-fill); }
.ai2-cards--no .ai2-card::before { background: var(--accent); }
.ai2-card h3 { font-size: 1.12rem; text-transform: none; letter-spacing: -.01em; margin: 6px 0 8px; }
.ai2-card p { font-size: .97rem; line-height: 1.55; color: var(--text-dark-muted); margin: 0; }

.ai2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); }
.ai2-step__n { font-family: var(--heading-font-family); font-weight: 700; font-size: 2.6rem; color: var(--cyan-fill); line-height: 1; letter-spacing: -.03em; }
.ai2-step h3 { font-size: 1.18rem; text-transform: none; letter-spacing: -.01em; margin: var(--space-xs) 0 8px; }
.ai2-step p { color: var(--text-dark-muted); line-height: 1.6; margin: 0; font-size: 1rem; }

.ai2-statement { background: var(--bg-ultra-dark); color: var(--text-light); text-align: center; }
.ai2-statement .wrap { max-width: 48rem; }
.ai2-statement .eyebrow { color: var(--cyan-bright); }
.ai2-statement p { font-family: var(--heading-font-family); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; letter-spacing: -.02em; margin-top: var(--space-s); }

@media (max-width: 860px) {
  .ai2-cards, .ai2-cards--no, .ai2-steps { grid-template-columns: 1fr; }
}
