/* Forge Night (round 6): night-solutions.css. Night-only rules, each scoped under html[data-look="night"]. */
/* Scope: the main content of the three Solutions pages (Agencies, Sales, Growth): the faint grid behind the top,
   the tags, the hero, the four-logo strip, the bands, the feature rows, the four cells, the fit lists, the Forge
   Expert program, the reviews with the video picture, and the outreach table (shown above 991 px only).
   This file loads only on those three pages, after night-base.css and night.css. */

/* ---------------------------------------------------------------- the faint grid behind the top of the page */
/* The grid sits one layer below the page content (z-index -1); night.css keeps the body see-through so it shows.
   In the original look a violet grid glows faintly behind the hero; on the dark page the same violet would vanish.
   Turning it light violet (colour kept, lightness flipped) brings it back as a quiet lit grid. */
html[data-look="night"] .sol-glare__wrap img { filter: invert(1) hue-rotate(180deg); }

/* ---------------------------------------------------------------- small labels above headings */
html[data-look="night"] .tag {
  background: rgba(143, 99, 246, .16); color: var(--n-violet-text);
  box-shadow: inset 0 0 0 1px rgba(183, 164, 255, .14);
}

/* ---------------------------------------------------------------- the four-logo strip */
/* The VAI Consulting logo (Sales and Growth) is white lettering on its own steel-blue box. The global white
   silhouette turns the whole box into a blank grey block, so here the box is pushed to black (grey, darker, strong
   contrast) while the white lettering stays white, and "screen" drops the black: a quiet white logo like the others.
   The global hover rule still brings it to full strength. */
html[data-look="night"] img.logo__img.logo__img--vai-s {
  filter: grayscale(1) brightness(.75) contrast(6); mix-blend-mode: screen; opacity: .85;   /* the homepage tile's recipe: crisp letters and mark */
}
/* the round arrow badge in the table's offer pills is drawn dark with a white arrow and vanished into the dark pill:
   colour-turned it is a light badge with a dark arrow, the same as in the homepage's table */
html[data-look="night"] .sot-offer__icon[src*="23ee040b61"] { filter: invert(1) hue-rotate(180deg); }
/* The logo grid is its own layer, so "screen" only blends with what is painted inside it. Giving each cell the page
   colour (identical to the page around it) gives the blend something to work on, and the black box drops out. */
html[data-look="night"] .logos__grid--4 .logo { background-color: var(--n-bg); }

/* section lead lines under the headings read as paragraphs, one step below the heading */
html[data-look="night"] .sol-head__text { color: var(--n-body); }

/* ---------------------------------------------------------------- feature rows (the classes come from home.css) */
html[data-look="night"] .feature__copy .dark { color: var(--n-body); }

/* ---------------------------------------------------------------- four cells */
/* The cell icons are a violet line drawn on a pale lilac square inside the picture: flip the lightness so the
   square goes deep violet and the line turns light violet. The flipped square is very deep, so the chip also gets a
   faint edge, written in the original violet because the filter flips it too (on screen it is light violet).
   Only the drawn icons (.svg): Agent Frank's photo on the Sales and Growth pages stays as it is. */
html[data-look="night"] img.cell__icon[src$=".svg"] {
  filter: invert(1) hue-rotate(180deg);
  border-radius: 6.4px; outline: 1px solid rgba(110, 64, 215, .4); outline-offset: -1px;
}
html[data-look="night"] .cell__text { color: var(--n-body); }

/* ---------------------------------------------------------------- good fit / not-so-good fit */
/* the hatched band around the frame, as the other bands at night */
html[data-look="night"] .fit { background: var(--n-bg-2) var(--n-lines) 0 0; border-bottom-color: var(--n-line); }
html[data-look="night"] .fit__frame { background: var(--n-bg); border-left-color: var(--n-line); border-right-color: var(--n-line); }
/* The rising line on top is drawn on a white panel that fades out. Flipping the lightness turns that panel black and
   the line light violet; "screen" then drops the black, so only the lit line and its node remain on the page. */
html[data-look="night"] .fit__graph img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
html[data-look="night"] .fit__badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
html[data-look="night"] .fit__badge--light {
  background: rgba(143, 99, 246, .16); color: var(--n-violet-text);
  box-shadow: inset 0 0 0 1px rgba(183, 164, 255, .14);
}
/* each statement sits on a raised surface with a hairline (drawn inside, so nothing moves) */
html[data-look="night"] .fit__item { background: var(--n-surface); color: var(--n-ink); box-shadow: inset 0 0 0 1px var(--n-line); }
html[data-look="night"] .fit__icon { background: var(--n-surface-2); box-shadow: inset 0 0 0 1px var(--n-line); }
/* violet line icons: flip the lightness so they read light violet on the dark chip */
html[data-look="night"] .fit__icon img { filter: invert(1) hue-rotate(180deg); }

/* ---------------------------------------------------------------- Forge Expert program (Agencies only) */
html[data-look="night"] .expert__item p { color: var(--n-body); }
html[data-look="night"] .expert__item b { color: var(--n-ink); }
/* the bullet: a lit violet dot in a soft violet ring that lets the page show through */
html[data-look="night"] .expert__dot {
  background: var(--n-violet-2); background-clip: padding-box;
  border-color: rgba(143, 99, 246, .24);
}

/* ---------------------------------------------------------------- customer reviews with a video */
html[data-look="night"] .reviews__media { background: var(--n-surface); box-shadow: inset 0 0 0 1px var(--n-line); }
html[data-look="night"] .reviews__media--violet { background: rgba(143, 99, 246, .1); box-shadow: inset 0 0 0 1px rgba(183, 164, 255, .14); }
/* the lilac squares behind the video would turn into bright patches; keep them as a whisper */
html[data-look="night"] .reviews__squares { opacity: .1; }
/* the soft shadow under the video becomes a soft violet glow */
html[data-look="night"] .reviews__video-shadow { background: var(--n-violet); opacity: .32; }
html[data-look="night"] .video { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
/* the play triangle stays white (the generated layer had turned it nearly transparent) */
html[data-look="night"] .video__play::after { border-color: transparent transparent transparent #fff; }
/* the star ratings: Salesforge violet, lifted so they stay clear on the dark and violet boxes */
html[data-look="night"] .stars { filter: brightness(1.3); }
html[data-look="night"] .quote { border-top-color: var(--n-line-2); }
html[data-look="night"] .quote__role { color: var(--n-muted); }

/* ---------------------------------------------------------------- the outreach table (992 px and wider) */
/* the table's own line colours: hairlines instead of the light grey and lilac lines of the original */
html[data-look="night"] .sot {
  --sot-line: rgba(255, 255, 255, .1);
  --sot-line-violet: rgba(183, 164, 255, .2);
  background: var(--n-bg);
}
/* the card: a raised dark surface with a hairline and a deep shadow */
html[data-look="night"] .sot__card {
  background: var(--n-surface); border-color: var(--n-line-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
/* row 1, the seven steps */
html[data-look="night"] .sot-step { background: rgba(255, 255, 255, .025); }
html[data-look="night"] .sot-step--brand { background: rgba(143, 99, 246, .1); border-bottom-color: var(--sot-line-violet); border-left-color: var(--sot-line-violet); }
html[data-look="night"] .sot-step__icon { background: var(--n-surface-2); box-shadow: none; }
html[data-look="night"] .sot-step--brand .sot-step__icon { background: rgba(143, 99, 246, .16); border-color: var(--sot-line-violet); }
/* steps 1 to 5: black line icons become quiet white; steps 6 and 7: violet line icons turn light violet */
html[data-look="night"] .sot-step__icon img { filter: brightness(0) invert(1); opacity: .85; }
html[data-look="night"] .sot-step--brand .sot-step__icon img { filter: invert(1) hue-rotate(180deg); opacity: 1; }
html[data-look="night"] .sot-step__label { color: var(--n-ink); }
html[data-look="night"] .sot-step--brand .sot-step__label { color: var(--n-violet-text); }

/* the pills on the lines between rows stay opaque so the line does not run through them */
html[data-look="night"] .sot-tag {
  background: var(--n-surface-2); border-color: var(--n-line-2); color: #d6d7e1;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
html[data-look="night"] .sot-tag--violet {
  background: linear-gradient(rgba(143, 99, 246, .16), rgba(143, 99, 246, .16)), var(--n-surface-2);
  border-color: rgba(183, 164, 255, .3); color: var(--n-violet-text);
}

/* row 2, without the Forge */
html[data-look="night"] .sot-todo__panel { background-image: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)); }
html[data-look="night"] .sot-todo__item { color: var(--n-body); }
html[data-look="night"] :is(.sot-goal, .sot-crm, .sot-side, .sot-blank) { background: transparent; }
html[data-look="night"] .sot-label { color: var(--n-violet-text); }

/* row 3, with the Forge: each product tile keeps its own hue as a deep tint that fades to the right */
html[data-look="night"] .sot-tile--leads { background-image: linear-gradient(90deg, rgba(23, 178, 106, .16), rgba(23, 178, 106, 0)); }
html[data-look="night"] .sot-tile--prime { background-image: linear-gradient(90deg, rgba(5, 147, 214, .16), rgba(5, 147, 214, 0)); }
html[data-look="night"] .sot-tile--infra { background-image: linear-gradient(90deg, rgba(77, 124, 254, .16), rgba(77, 124, 254, 0)); }
html[data-look="night"] .sot-tile--mail { background-image: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); }
html[data-look="night"] .sot-tile--warm { background-image: linear-gradient(90deg, rgba(253, 176, 34, .095), rgba(253, 176, 34, 0)); }
html[data-look="night"] .sot-tile--sales { background-image: linear-gradient(90deg, rgba(143, 99, 246, .16), rgba(143, 99, 246, 0)); }
/* Forge product wordmarks (coloured mark, dark letters): keep the colour of the mark, turn the letters light */
html[data-look="night"] .sot-logo { filter: invert(1) hue-rotate(180deg); }
/* flipping the lightness darkens Warmforge's orange mark to rust; lift it back towards the original orange */
html[data-look="night"] .sot-logo--warm { filter: invert(1) hue-rotate(180deg) brightness(1.3); }

/* the offer pills inside the tiles */
html[data-look="night"] .sot-offer--leads { background: rgba(23, 178, 106, .16); color: #5ccc86; }
html[data-look="night"] .sot-offer--warm { background: rgba(253, 176, 34, .14); color: #fdb022; }
html[data-look="night"] :is(.sot-offer--sales, .sot-offer--frank) { background: rgba(143, 99, 246, .18); color: var(--n-ink); }

/* the CRM column: the panel hangs over the row below, so it stays opaque, with a violet glow in its far corner */
html[data-look="night"] .sot-crm__panel {
  background-color: #1a1b26;
  background-image: linear-gradient(135deg, rgba(143, 99, 246, 0) 57%, rgba(143, 99, 246, .2));
  box-shadow: inset 0 0 0 1px var(--n-line);
}
html[data-look="night"] .sot-crm__title { color: var(--n-muted); }
/* CRM wordmarks drawn in dark ink (HubSpot, Breakcold, Attio, folk): light letters, the coloured marks unchanged */
html[data-look="night"] .sot-crm__logo :is(path, rect, circle)[fill="#33475B"],
html[data-look="night"] .sot-crm__logo :is(path, rect, circle)[fill="#000"],
html[data-look="night"] .sot-crm__logo :is(path, rect, circle)[fill="black"],
html[data-look="night"] .sot-crm__logo :is(path, rect, circle)[fill="#1C1D1F"] { fill: #e6e7ef; }
html[data-look="night"] .sot-crm__logo :is(path, rect, circle)[stroke="black"] { stroke: #e6e7ef; }
/* the HighLevel picture: coloured bars with dark letters */
html[data-look="night"] img.sot-crm__logo { filter: invert(1) hue-rotate(180deg); }

/* row 4, Agent Frank: the card covers the cells hanging into it, so its faint violet wash stays opaque */
html[data-look="night"] .sot-frank__card { background-image: linear-gradient(90deg, #1c1b2d, #191926 50%, var(--n-surface)); color: var(--n-violet-text); }
html[data-look="night"] .sot-frank__name { color: var(--n-ink); }
html[data-look="night"] .sot-frank__tag {
  background: linear-gradient(rgba(143, 99, 246, .16), rgba(143, 99, 246, .16)), var(--n-surface-2);
  border-color: rgba(183, 164, 255, .3); color: var(--n-violet-text);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
html[data-look="night"] .sot-arrow { background: var(--n-violet); box-shadow: 0 6px 18px -6px rgba(143, 99, 246, .9); }
