/* =============================================================================
   The Day look, every page (Frank 2026-11-27: Day must reach the level of the Night look, CL-241).
   Shared by site/index.html (inlined by the home build) and every page built from site/_build/template.html (linked).
   Night is not touched: every rule here starts with html[data-theme="day"].
   No images, no motion, no fixed layers: painted gradients and CSS dot patterns that scroll with the page.

   1. CL-258, the opening (home): the raised panel keeps its blueprint grid and gets a soft light gradient behind it
      (warm ivory into pale gold and pale sky). The page behind the panel no longer repeats the bright white
      blueprint: it is a calm, slightly deeper sky-to-sand gradient, so the panel reads as raised.
      A visitor's own color mix still tints the panel as before (22-akarec-v3-launch.css); the default mix gets this look.
   2. CL-259, every page: one calm page gradient (ivory, pale sky, pale sand, never flat white) that shifts down the page,
      and Frank's favourite pairing as the system: a light gold/brown dotted section, then a light blue dotted section,
      alternating. Same dot size and spacing everywhere (1.1 px dots on a 20 px grid), smooth gradients under the dots,
      soft edges so sections melt into the page. Everything follows the visitor's color mix (--mx-*).
      Text contrast: the deepest tone used behind text is about #E2EEF6 / #F4EADB; ink, muted text (#475569) and the
      Day eyebrow gold (CL-164) all stay above 4.5:1 on it.
   3. CL-285 (Frank round 3, items 1-3): richer light tones built in OKLCH (gradients interpolate `in oklch`, so blends stay clean
      without grey middles; on wide-gamut screens the glows reach into display-p3). The hero panel goes white, then light yellow, then
      light blue, and stays whiter than the page; its blueprint gets a few deeper brand blues. The dots are deeper (gold or blue) at
      the top right and fade through the whole section to the same very light dots as before (lighter to the left, lighter going down):
      two see-through "veils" in the section's own tones sit over the dots, so the tones and glows are untouched.
      Browsers without `in oklch` keep the CL-259 painting (the @supports blocks below hold the new one). AA re-measured.
   ============================================================================= */

/* ---------- 1. the opening ---------- */
/* behind the panel: calm sky-to-sand, no grid lines; soft gold and blue light in the top corners */
html[data-theme="day"] #sec-hero::before,
html[data-theme="day"][data-mix="AKAREC Signature"] #sec-hero::before {
  background-image:
    radial-gradient(ellipse 52% 64% at 98% 0%, color-mix(in srgb, var(--mx-day-pri, #D97706) 13%, transparent), transparent 72%),
    radial-gradient(ellipse 46% 58% at 0% 14%, color-mix(in srgb, var(--mx-sec, #0284C7) 13%, transparent), transparent 72%),
    linear-gradient(180deg, #DCE7F0 0%, #E6ECEE 36%, #EEE8DA 74%, #F2EDE2 100%);
  background-image:
    radial-gradient(ellipse 52% 64% at 98% 0%, color-mix(in oklch, var(--mx-day-pri, #D97706) 15%, transparent), transparent 72%),
    radial-gradient(ellipse 46% 58% at 0% 14%, color-mix(in oklch, var(--mx-sec, #0284C7) 15%, transparent), transparent 72%),
    linear-gradient(in oklch 180deg, oklch(91.8% 0.026 238) 0%, oklch(93.4% 0.016 220) 36%, oklch(93.6% 0.026 84) 74%, oklch(95.2% 0.02 82) 100%);
  background-size: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
/* the raised panel (default mix): warm ivory on the reading side, pale gold and pale sky toward the sample site */
html[data-theme="day"][data-mix="AKAREC Signature"] #heroStageSurface,
html[data-theme="day"][data-tryout-palette][data-mix="AKAREC Signature"] #heroStageSurface {
  background-color: #FCF8EF !important;
  background-image:
    radial-gradient(ellipse 58% 62% at 100% 0%, rgba(245, 158, 11, 0.10), transparent 70%),
    radial-gradient(ellipse 62% 70% at 100% 100%, rgba(2, 132, 199, 0.15), transparent 72%),
    radial-gradient(ellipse 50% 46% at 0% 0%, rgba(2, 132, 199, 0.06), transparent 70%),
    radial-gradient(ellipse 44% 48% at 0% 100%, rgba(2, 132, 199, 0.08), transparent 70%),
    linear-gradient(118deg, #FFFEFC 0%, #FDFAF3 50%, #F9F2E2 100%) !important;
  /* CL-285: white, then light yellow, then light blue, each fading into the next; whiter than the page around it */
  background-color: #FFFEFB !important;
  background-image:
    radial-gradient(ellipse 52% 56% at 100% 0%, color-mix(in oklch, #FDE047 13%, transparent), transparent 72%),
    radial-gradient(ellipse 62% 70% at 100% 100%, color-mix(in oklch, #38BDF8 13%, transparent), transparent 74%),
    radial-gradient(ellipse 44% 48% at 0% 100%, color-mix(in oklch, #0284C7 5%, transparent), transparent 70%),
    linear-gradient(in oklch 118deg, oklch(100% 0 0) 0%, oklch(99.6% 0.004 95) 30%, oklch(98.9% 0.03 96) 60%, oklch(98.4% 0.012 220) 82%, oklch(97.8% 0.017 235) 100%) !important;
  border: 1px solid rgba(11, 25, 48, 0.12) !important;
  box-shadow:
    inset 0 1px 0 #FFFFFF,
    0 2px 4px rgba(11, 25, 48, 0.05),
    0 16px 32px -20px rgba(146, 64, 14, 0.18),
    0 38px 76px -32px rgba(11, 25, 48, 0.36) !important;
}
/* the panel's blueprint: the fine grid plus a heavier line every fifth square, so it reads as a drawing, not graph paper */
html[data-theme="day"] #heroStageSurface::before {
  /* CL-285: the heavier lines in a deeper brand blue (#075985), the fine grid unchanged */
  background-image:
    linear-gradient(rgba(7, 89, 133, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 89, 133, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(2, 132, 199, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.16) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0, 0, 0, 0.35) 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgba(0, 0, 0, 0.35) 78%, transparent 100%);
}

/* ---------- 2. every page: the page gradient ---------- */
html[data-theme="day"] body,
html[data-theme="day"][data-mix="AKAREC Signature"] body,
html[data-theme="day"][data-tryout-palette] body,
html[data-theme="day"][data-tryout-palette][data-mix="AKAREC Signature"] body {
  background-color: #F6F2E9 !important;
  background-image:
    radial-gradient(1100px 760px at 86% 1.5%, color-mix(in srgb, var(--mx-day-pri, #D97706) 9%, transparent) 0%, transparent 70%),
    radial-gradient(1000px 900px at 6% 30%, color-mix(in srgb, var(--mx-sec, #0284C7) 8%, transparent) 0%, transparent 70%),
    radial-gradient(900px 820px at 92% 60%, color-mix(in srgb, var(--mx-day-pri, #D97706) 7%, transparent) 0%, transparent 70%),
    radial-gradient(1000px 820px at 12% 86%, color-mix(in srgb, var(--mx-sec, #0284C7) 8%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, #E4ECF1 0%, #EFEEE8 5%, #F7F3EA 16%, #EEF3F6 32%, #F8F3E9 48%, #EDF3F6 64%, #F7F2E8 80%, #EEF2F3 93%, #E6ECEF 100%) !important;
  /* CL-285: the same journey (sky, sand, sky ...) in richer OKLCH tones that blend without grey middles */
  background-image:
    radial-gradient(1100px 760px at 86% 1.5%, color-mix(in oklch, var(--mx-day-pri, #D97706) 11%, transparent) 0%, transparent 70%),
    radial-gradient(1000px 900px at 6% 30%, color-mix(in oklch, var(--mx-sec, #0284C7) 10%, transparent) 0%, transparent 70%),
    radial-gradient(900px 820px at 92% 60%, color-mix(in oklch, var(--mx-day-pri, #D97706) 9%, transparent) 0%, transparent 70%),
    radial-gradient(1000px 820px at 12% 86%, color-mix(in oklch, var(--mx-sec, #0284C7) 10%, transparent) 0%, transparent 70%),
    linear-gradient(in oklch 180deg, oklch(93.4% 0.02 236) 0%, oklch(95% 0.012 160) 5%, oklch(96.6% 0.02 84) 16%, oklch(95.6% 0.016 232) 32%, oklch(96.8% 0.022 82) 48%, oklch(95.5% 0.017 230) 64%, oklch(96.6% 0.022 80) 80%, oklch(95.4% 0.012 210) 93%, oklch(93.6% 0.018 230) 100%) !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* ---------- 2. the two section looks (set as variables, painted by one rule) ---------- */
/* gold/brown dots on warm ivory-to-sand */
/* CL-295: home order is hero, What we do, Websites, Brand Studio, AKA Grade, Automation, Industry, finder, FAQ: gold, blue, gold, blue, gold, blue, gold, blue */
html[data-theme="day"] :is(#sec-services, #sec-cocreation, #sec-automation, #sec-ownership, #sec-pricing, #sec-industries + #sec-finder),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-faq,
html[data-theme="day"] body.akp main > .akp-section:nth-of-type(even):not(.akp-hero) {
  --dk-a: color-mix(in oklch, var(--mx-day-pri, #B45309) 3%, oklch(98.6% 0.012 85));
  --dk-b: color-mix(in oklch, var(--mx-day-pri, #B45309) 6%, oklch(96.6% 0.03 82));
  --dk-dot: color-mix(in srgb, var(--mx-day-pri, #B45309) 28%, transparent);
  --dk-dot-rich: color-mix(in srgb, color-mix(in oklch, var(--mx-day-pri, #B45309) 82%, var(--mx-pri, #F59E0B)) 50%, transparent);
  --dk-glow: color-mix(in oklch, var(--mx-pri, #F59E0B) 13%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-sec, #0284C7) 8%, transparent);
}
/* blue dots on pale sky */
html[data-theme="day"] :is(#sec-websites, #sec-grade, #sec-industries, #sec-finder, #sec-faq),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-pricing,
html[data-theme="day"] body.akp main > .akp-section:nth-of-type(odd):not(.akp-hero) {
  --dk-a: color-mix(in oklch, var(--mx-sec, #0284C7) 3%, oklch(98.6% 0.008 235));
  --dk-b: color-mix(in oklch, var(--mx-sec, #0284C7) 7%, oklch(96.2% 0.022 235));
  --dk-dot: color-mix(in srgb, var(--mx-day-sec, #0369A1) 30%, transparent);
  --dk-dot-rich: color-mix(in srgb, color-mix(in oklch, var(--mx-day-sec, #0369A1) 80%, var(--mx-sec, #0284C7)) 52%, transparent);
  --dk-glow: color-mix(in oklch, var(--mx-sec, #0284C7) 12%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-pri, #F59E0B) 9%, transparent);
}

/* home: each section paints its look on its own layer behind the content; the old flat white section fills go */
html[data-theme="day"][data-theme][data-theme] main > .ak-section:not(#sec-hero) { background: transparent !important; }
html[data-theme="day"] :is(#sec-cocreation, #sec-grade, #sec-automation, #sec-services, #sec-websites, #sec-industries, #sec-ownership, #sec-finder, #sec-pricing, #sec-faq)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(var(--dk-dot) 1.1px, transparent 1.7px),
    radial-gradient(ellipse 62% 46% at 88% 10%, var(--dk-glow), transparent 72%),
    radial-gradient(ellipse 56% 42% at 6% 92%, var(--dk-glow2), transparent 72%),
    linear-gradient(180deg, var(--dk-a) 0%, var(--dk-b) 46%, var(--dk-a) 100%);
  background-size: 20px 20px, auto, auto, auto;
  background-position: 0 0;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 84px, #000 calc(100% - 84px), transparent 100%);
}

/* built pages: the same two looks on every section after the hero (sections with a background picture keep it on top) */
html[data-theme="day"] body.akp main > .akp-section:not(.akp-hero) {
  background-image:
    radial-gradient(var(--dk-dot) 1.1px, transparent 1.7px),
    radial-gradient(ellipse 62% 46% at 88% 10%, var(--dk-glow), transparent 72%),
    radial-gradient(ellipse 56% 42% at 6% 92%, var(--dk-glow2), transparent 72%),
    linear-gradient(180deg, transparent 0, var(--dk-a) 84px, var(--dk-b) 50%, var(--dk-a) calc(100% - 84px), transparent 100%);
  background-size: 20px 20px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  border-bottom-color: transparent;
}
/* built pages carry far more plain text straight on the section: quieter dots there */
html[data-theme="day"] body.akp main > .akp-section:nth-of-type(even):not(.akp-hero) { --dk-dot: color-mix(in srgb, var(--mx-day-pri, #B45309) 21%, transparent); --dk-dot-rich: color-mix(in srgb, var(--mx-day-pri, #B45309) 40%, transparent); }
html[data-theme="day"] body.akp main > .akp-section:nth-of-type(odd):not(.akp-hero) { --dk-dot: color-mix(in srgb, var(--mx-day-sec, #0369A1) 23%, transparent); --dk-dot-rich: color-mix(in srgb, var(--mx-day-sec, #0369A1) 42%, transparent); }
/* the SEO pages draw their own node pattern per section (CL-203): they take the tones, not the dots */
html[data-theme="day"] body.akp--seo main > .akp-section:not(.akp-hero) { --dk-dot: transparent; --dk-dot-rich: transparent; }
html[data-theme="day"] body.akp--seo main > .akp-section:not(.akp-hero):nth-of-type(even) { background-color: transparent; }

/* ---------- 3. CL-285: dots that fade through the section (darker right, lighter left, lighter going down), OKLCH blends ----------
   Layers, top first: the two glows, a sideways veil (the section's edge tone, strong on the left, gone on the right), a downward veil
   (the section's own tone stops, so the tone underneath never shifts: clear near the top, close to solid at the bottom), the deep dots,
   the section's tone gradient. Where the veils are clear the dots show at their deepest; at the bottom left they end as light as before. */
@supports (background-image: linear-gradient(in oklch, red, blue)) {
  html[data-theme="day"] :is(#sec-cocreation, #sec-grade, #sec-automation, #sec-services, #sec-websites, #sec-industries, #sec-ownership, #sec-finder, #sec-pricing, #sec-faq)::after {
    background-image:
      radial-gradient(ellipse 62% 46% at 88% 10%, var(--dk-glow-p3, var(--dk-glow)), transparent 72%),
      radial-gradient(ellipse 56% 42% at 6% 92%, var(--dk-glow2), transparent 72%),
      linear-gradient(in oklch 90deg, color-mix(in srgb, var(--dk-a) 72%, transparent) 0%, color-mix(in srgb, var(--dk-a) 38%, transparent) 42%, color-mix(in srgb, var(--dk-a) 0%, transparent) 88%),
      linear-gradient(in oklch 180deg, color-mix(in srgb, var(--dk-a) 55%, transparent) 0%, color-mix(in srgb, var(--dk-a) 0%, transparent) 14%, color-mix(in srgb, color-mix(in oklch, var(--dk-a) 50%, var(--dk-b)) 30%, transparent) 30%, color-mix(in srgb, var(--dk-b) 55%, transparent) 46%, color-mix(in srgb, color-mix(in oklch, var(--dk-a) 50%, var(--dk-b)) 74%, transparent) 74%, color-mix(in srgb, var(--dk-a) 86%, transparent) 100%),
      radial-gradient(var(--dk-dot-rich) 1.1px, transparent 1.7px),
      linear-gradient(in oklch 180deg, var(--dk-a) 0%, color-mix(in oklch, var(--dk-a) 50%, var(--dk-b)) 30%, var(--dk-b) 46%, color-mix(in oklch, var(--dk-a) 50%, var(--dk-b)) 74%, var(--dk-a) 100%);
    background-size: auto, auto, 100% 100%, 100% 100%, 20px 20px, auto;
    background-position: 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  }
  /* built pages: the same layers; the dots and veils stay inside the section's padding (content box), where the tone is solid,
     so they start and end softly; the soft see-through edges of the tone are unchanged */
  html[data-theme="day"] body.akp main > .akp-section:not(.akp-hero) {
    background-image:
      radial-gradient(ellipse 62% 46% at 88% 10%, var(--dk-glow-p3, var(--dk-glow)), transparent 72%),
      radial-gradient(ellipse 56% 42% at 6% 92%, var(--dk-glow2), transparent 72%),
      linear-gradient(in oklch 90deg, color-mix(in srgb, var(--dk-a) 72%, transparent) 0%, color-mix(in srgb, var(--dk-a) 38%, transparent) 42%, color-mix(in srgb, var(--dk-a) 0%, transparent) 88%),
      linear-gradient(in oklch 180deg, color-mix(in srgb, var(--dk-a) 92%, transparent) 0%, color-mix(in srgb, var(--dk-a) 0%, transparent) 12%, color-mix(in srgb, var(--dk-b) 50%, transparent) 50%, color-mix(in srgb, var(--dk-a) 92%, transparent) 100%),
      radial-gradient(var(--dk-dot-rich) 1.1px, transparent 1.7px),
      linear-gradient(in oklch 180deg, transparent 0, var(--dk-a) 3rem, var(--dk-b) 50%, var(--dk-a) calc(100% - 3rem), transparent 100%);
    background-size: auto, auto, 100% 100%, 100% 100%, 20px 20px, auto;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat;
    background-origin: padding-box, padding-box, content-box, content-box, content-box, padding-box;
    background-clip: border-box, border-box, content-box, content-box, content-box, border-box;
  }
}
/* wide-gamut screens (display-p3): the glows reach a little richer than sRGB allows */
@supports (color: oklch(from red l c h)) {
  @media (color-gamut: p3) {
    html[data-theme="day"] :is(#sec-cocreation, #sec-grade, #sec-automation, #sec-services, #sec-websites, #sec-industries, #sec-ownership, #sec-finder, #sec-pricing, #sec-faq),
    html[data-theme="day"] body.akp main > .akp-section:not(.akp-hero) {
      --dk-glow-p3: oklch(from var(--dk-glow) l calc(c * 1.25) h / alpha);
    }
  }
}
/* AA on the new tones: gold and blue text that sits straight on a section (table prices, table links) goes a shade deeper, as the eyebrows did in CL-164 */
html[data-theme="day"] body.akp main > .akp-section:not(.akp-hero) :is(.akp-table td:nth-child(2), .akp-all__h, .ak-all-prices h3) { color: color-mix(in srgb, var(--mx-day-pri, var(--p-gold, #B45309)) 70%, #451A03); }
html[data-theme="day"] body.akp main > .akp-section:not(.akp-hero) :is(.akp-table a, p > a:not([class]), li > a:not([class])) { color: color-mix(in srgb, var(--ak-sky, #0369A1) 75%, #0B1930); }

/* ---------- CL-333 (Frank 2026-11-29, a test he asked for on the HOME page): the dots trade places and the brown goes ----------
   "in the blue sections ... the background dots to be the yellow/orange ... and for the yellow/orange background colored sections
   the dots to be blue." So: pale-sky sections carry Solar Amber dots, warm sections carry AKAREC Blue dots. The warm sections also
   lose the brown-orange (#B45309) cast: they are clean ivory with an amber glow. Home only (#sec-* ids); the built pages are unchanged.
   Follows the visitor's color mix as before. */
html[data-theme="day"] :is(#sec-services, #sec-cocreation, #sec-automation, #sec-ownership, #sec-pricing, #sec-industries + #sec-finder),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-faq {
  --dk-a: oklch(99% 0.008 92);
  --dk-b: color-mix(in oklch, var(--mx-pri, #F59E0B) 9%, oklch(98% 0.016 92));
  --dk-dot: color-mix(in srgb, var(--mx-sec, #0284C7) 34%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-sec, #0284C7) 60%, transparent);
  --dk-glow: color-mix(in oklch, var(--mx-pri, #F59E0B) 20%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-sec, #0284C7) 9%, transparent);
}
html[data-theme="day"] :is(#sec-websites, #sec-grade, #sec-industries, #sec-finder, #sec-faq),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-pricing {
  --dk-dot: color-mix(in srgb, var(--mx-pri, #F59E0B) 50%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-pri, #F59E0B) 88%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-pri, #F59E0B) 13%, transparent);
}
/* the same order of exceptions as above (finder after industries is warm, FAQ after it is warm, pricing after it is sky) */
html[data-theme="day"] #sec-industries + #sec-finder,
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-faq {
  --dk-a: oklch(99% 0.008 92);
  --dk-b: color-mix(in oklch, var(--mx-pri, #F59E0B) 9%, oklch(98% 0.016 92));
  --dk-dot: color-mix(in srgb, var(--mx-sec, #0284C7) 34%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-sec, #0284C7) 60%, transparent);
  --dk-glow: color-mix(in oklch, var(--mx-pri, #F59E0B) 20%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-sec, #0284C7) 9%, transparent);
}

/* ---------- CL-334 (Frank 2026-11-29: the brown-orange #B45309 Day shade "is not the color i want here or any other section") ----------
   Day, every page. One rule of thumb replaces the old "Day gold": edges, dots, lines and fills are Frank's Solar Amber (the visitor's
   own main color when they mix); small accent WORDS are AKAREC Blue, because amber words cannot be read on a light page.
   Found with outbox/LAUNCH/showroom-polish/brownscan.mjs, which must list nothing brown on a Day page. Night is not touched. */
html[data-theme="day"] { --dayfix-amber: var(--mx-pri, #F59E0B); --dayfix-edge: color-mix(in srgb, var(--mx-pri, #F59E0B) 62%, transparent); --dayfix-word: var(--mx-day-sec, #0369A1); }
/* edges */
html[data-theme="day"] body :is(.web-seal, .web-proof, .bs-buy, .bs-tier, .bs-tier__tag, .bs-link, .bs-link__go, .ak-jump__go, .ak-finder, .ak-finder__q, .ak-faq__price, .ak-sky__go, .akq-src-wrap summary) { border-color: var(--dayfix-edge) !important; }
html[data-theme="day"] body :is(.ak-button.ak-tier__go, .ak-button.ak-button--hero) { border-color: var(--dayfix-amber) !important; }
/* dots, lines, drawn art */
html[data-theme="day"] body .nav-link::after { background: var(--dayfix-amber) !important; }
html[data-theme="day"] body .bs-tier__tag::before { background: var(--dayfix-amber) !important; }
html[data-theme="day"] .bm-toggle__dots i:first-child { background: var(--dayfix-amber); }
html[data-theme="day"] #akFinder .ak-finder__guide { --akg: var(--dayfix-amber); --akg-ink: var(--dayfix-word); }
/* accent words */
html[data-theme="day"] body main :is(.bs-tier__tag, .akg-line, .akq-src-wrap summary span) { color: var(--dayfix-word) !important; }
html[data-theme="day"] body main #sec-automation strong { color: var(--dayfix-word) !important; }
html[data-theme="day"] body .ak-faq__item summary::after { color: var(--dayfix-word) !important; }
html[data-theme="day"] .ak-sky__go b { color: var(--dayfix-word); }
/* "No charge." (Frank asked for it in yellow, CL-324): in Day it is Ink on the amber-to-citron gradient, as a small chip */
html[data-theme="day"] body main #sec-how p.akhow__try-title .akhow__nocharge { color: #0B1930 !important; display: inline-block; margin-top: 0.3em; line-height: 1.15; padding: 0.06em 0.5em 0.12em; border-radius: 999px; background: linear-gradient(135deg, #F59E0B, #FBBF24 50%, #FDE047); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
/* the built pages (same rule of thumb) */
html[data-theme="day"] body :is(.akp-card.ak-tier, svg.aki) { border-color: var(--dayfix-edge) !important; }
html[data-theme="day"] body .akp-steps li::before { background: var(--dayfix-amber) !important; color: #0B1930 !important; }
html[data-theme="day"] body main :is(.akp-tag, a[data-why-open]) { color: var(--dayfix-word) !important; }
html[data-theme="day"] body a.akp-go::before { color: var(--dayfix-word) !important; }
html[data-theme="day"] body .ak-sky__go b { color: var(--dayfix-word) !important; }
html[data-theme="day"] body .ak-finder__guide { --akg: var(--dayfix-amber) !important; --akg-ink: var(--dayfix-word) !important; }

/* CL-334: Frank could not see the traded dots (CL-333): they are bolder now. Amber dots on the sky sections, blue dots on the warm ones. */
html[data-theme="day"] :is(#sec-services, #sec-cocreation, #sec-automation, #sec-ownership, #sec-pricing, #sec-industries + #sec-finder),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-faq {
  --dk-dot: color-mix(in srgb, var(--mx-sec, #0284C7) 62%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-sec, #0284C7) 92%, transparent);
}
html[data-theme="day"] :is(#sec-websites, #sec-grade, #sec-industries, #sec-finder:not(#sec-industries + #sec-finder), #sec-faq:not(#sec-industries + #sec-finder ~ #sec-faq)),
html[data-theme="day"] #sec-industries + #sec-finder ~ #sec-pricing {
  --dk-dot: color-mix(in srgb, var(--mx-pri, #F59E0B) 85%, transparent);
  --dk-dot-rich: var(--mx-pri, #F59E0B);
}

/* ---------- CL-337 (one fix, every page): the built pages get the home page's Day treatment from CL-333 / CL-334 ----------
   Warm sections are clean ivory with an amber glow and AKAREC Blue dots; sky sections carry Solar Amber dots. No brown cast, no
   brown dots. (The SEO pages keep their own node pattern, so they take the tones only.) */
html[data-theme="day"] body.akp main > .akp-section:nth-of-type(even):not(.akp-hero) {
  --dk-a: oklch(99% 0.008 92);
  --dk-b: color-mix(in oklch, var(--mx-pri, #F59E0B) 9%, oklch(98% 0.016 92));
  --dk-glow: color-mix(in oklch, var(--mx-pri, #F59E0B) 18%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-sec, #0284C7) 9%, transparent);
}
html[data-theme="day"] body.akp:not(.akp--seo) main > .akp-section:nth-of-type(even):not(.akp-hero) {
  --dk-dot: color-mix(in srgb, var(--mx-sec, #0284C7) 42%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-sec, #0284C7) 66%, transparent);
}
html[data-theme="day"] body.akp:not(.akp--seo) main > .akp-section:nth-of-type(odd):not(.akp-hero) {
  --dk-dot: color-mix(in srgb, var(--mx-pri, #F59E0B) 60%, transparent);
  --dk-dot-rich: color-mix(in srgb, var(--mx-pri, #F59E0B) 90%, transparent);
  --dk-glow2: color-mix(in oklch, var(--mx-pri, #F59E0B) 12%, transparent);
}

/* ---------- CL-338: the old "Day gold" token itself is retired inside the page (Frank: not "here or any other section") ----------
   Tools that load while scrolling (AKA Roof, the AKA Grade pin, quote tools) read the Day gold from tokens, so single rules could
   not reach them all. Inside <main>, in Day, every token that used to give the brown-orange now gives AKAREC Blue (the visitor's
   second color when they mix): accent words, small marks and fine edges. Amber fills, gold buttons and the amber edges set in
   CL-334 are not touched (they read --mx-pri / --dayfix-amber). */
html[data-theme="day"] body main, html[data-theme="day"] body .modal-backdrop {
  --mx-day-pri: var(--mx-day-sec, #0369A1);
  --p-gold: var(--mx-day-sec, #0369A1);
  --ak-amber: var(--mx-day-sec, #0369A1);
  --ak-gold: var(--mx-day-sec, #0369A1);
  --p-amber-brown: #075985;
}
html[data-theme="day"] body main :is(.akp-quote) { border-left-color: var(--dayfix-amber) !important; }
html[data-theme="day"] body main :is(.akp-talk, .akp-all__go) { color: var(--dayfix-word) !important; }
html[data-theme="day"] body main .akp-facts li::before { color: var(--dayfix-word) !important; }
html[data-theme="day"] body main .arp-count b { color: var(--dayfix-word) !important; }
