/* Salesforge rebuild, version 6, round 6: "Forge Night", the hand-made design layer.
   Loads after night-base.css (every colour of the site turned dark by buildtools/v6_night_compile.py) and before the
   per-page night files. Everything here is scoped under html[data-look="night"], so the original design is untouched.

   The idea: a forge at night. Deep ink-blue surfaces, Salesforge's violet as the light source, a warm ember at the
   end of the accent gradient, Frank's product pictures as lit objects. Type is a touch larger and tighter, the accent
   words of every heading carry the violet-to-ember gradient, primary buttons glow, fields sit raised on the page. */

html[data-look="night"] {
  color-scheme: dark;
  --n-bg: #0b0c11;
  --n-bg-2: #101119;
  --n-surface: #151620;
  --n-surface-2: #1e1f2c;
  --n-surface-3: #282a39;
  --n-line: rgba(255, 255, 255, .08);
  --n-line-2: rgba(255, 255, 255, .14);
  --n-ink: #f4f4fa;
  --n-body: #bbbdc9;
  --n-muted: #9597a6;
  --n-violet: #6e40d7;
  --n-violet-2: #8f63f6;
  --n-violet-text: #b7a4ff;
  --n-ember: #fea668;
  --n-accent: linear-gradient(95deg, #d3c3ff 0%, #ae90ff 32%, #ef94c9 68%, #fea668 100%);
  --n-glow: 0 0 0 1px rgba(255, 255, 255, .07), 0 28px 80px -28px rgba(143, 99, 246, .6);
  --n-lines: url("../img/bg-line-shape-night.svg");
  background: var(--n-bg);
}
/* html paints the page colour on the whole canvas; a see-through body lets decorative layers behind the content
   (z-index -1, such as the faint grid at the top of Pricing and the Solutions pages) show, as in the original look */
html[data-look="night"] body { background: transparent; }
html[data-look="night"] ::selection { background: rgba(143, 99, 246, .5); color: #fff; }
html[data-look="night"] :focus-visible { outline-color: #b7a4ff; }
/* the generated layer turned a few day focus rings into a deep violet; these controls get the same bright ring */
html[data-look="night"] :is(.look-toggle, .ask-trigger, .look-seg__btn):focus-visible { outline-color: var(--n-violet-text); }

/* ---------------------------------------------------------------- type: a touch larger and tighter */
html[data-look="night"] .hero__title { font-size: 44px; line-height: 1.15; font-weight: 550; letter-spacing: -.025em; }
html[data-look="night"] .h1 { letter-spacing: -.03em; }
html[data-look="night"] .h2 { font-size: 52px; line-height: 1.2; letter-spacing: -.03em; }
html[data-look="night"] .h3 { font-size: 40px; line-height: 1.15; letter-spacing: -.028em; }
html[data-look="night"] .h4 { font-size: 33px; line-height: 1.22; font-weight: 550; letter-spacing: -.026em; }
html[data-look="night"] .footer__title { font-size: 40px; line-height: 1.15; letter-spacing: -.028em; }
@media (max-width: 991px) {
  html[data-look="night"] .hero__title { font-size: 42px; }
  html[data-look="night"] .h2 { font-size: 2.7rem; }
  html[data-look="night"] .h3 { font-size: 2.2rem; }
  html[data-look="night"] .h4 { font-size: 1.85rem; }
  html[data-look="night"] .footer__title { font-size: 34px; }
}
@media (max-width: 767px) {
  html[data-look="night"] .h2 { font-size: 2.15rem; }
  html[data-look="night"] .h3 { font-size: 1.9rem; }
  html[data-look="night"] .h4 { font-size: 1.55rem; }
  html[data-look="night"] .footer__title { font-size: 30px; }
}
@media (max-width: 479px) { html[data-look="night"] .hero__title { font-size: 37px; } }
/* the larger night headings wrap where day fits one line: balance the lines so no word is left alone */
html[data-look="night"] :is(.hero__title, .h1, .h2, .h3, .h4, .footer__title) { text-wrap: balance; }
html[data-look="night"] .h4.h4--600 { font-weight: 600; }

/* the accent words of every heading: Salesforge violet heating up to ember */
html[data-look="night"] :is(h1, h2, h3) .brand,
html[data-look="night"] .grad {
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--n-accent); -webkit-background-clip: text; background-clip: text;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------------------------------------------------------------- header: frosted glass over the page */
html[data-look="night"] .nav { background: transparent; border-bottom-color: rgba(255, 255, 255, .07); }
html[data-look="night"] .nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(11, 12, 17, .74);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
html[data-look="night"] .nav__logo-img--day { display: none; }
html[data-look="night"] .nav__logo-img--night { display: block; }   /* hidden in the original look by look.css */
html[data-look="night"] .nav__link { color: #e6e6f0; }
html[data-look="night"] .nav__link:hover,
html[data-look="night"] .nav__dd.is-open .nav__dd-toggle { background: rgba(255, 255, 255, .06); }
html[data-look="night"] .nav__chev path,
html[data-look="night"] .nav__dd-icon path,
html[data-look="night"] .nav__burger path { stroke: currentColor; }
html[data-look="night"] .nav__chev { color: #e6e6f0; }
html[data-look="night"] .nav__dd-icon { color: var(--n-violet-text); }
html[data-look="night"] .nav__burger { color: var(--n-ink); }
html[data-look="night"] .nav__dd-panel {
  background: rgba(21, 22, 32, .96); border-color: var(--n-line-2);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(143, 99, 246, .08);
}
html[data-look="night"] .nav__dd-item:hover { background: rgba(255, 255, 255, .05); }
html[data-look="night"] .nav__dd-shadow { display: none; }
/* the open Solutions menu is frosted like the header, so what is behind it blurs instead of ghosting through */
@media (min-width: 992px) {
  html[data-look="night"] .nav__dd-panel { -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
@media (max-width: 991px) {
  html[data-look="night"] .nav__menu { background: var(--n-bg); }
  html[data-look="night"] .nav__link,
  html[data-look="night"] .nav__link:hover { background: var(--n-bg); border-bottom-color: var(--n-line); }
  html[data-look="night"] .nav__dd.is-open .nav__dd-toggle { background: var(--n-bg-2); border-bottom-color: var(--n-bg-2); }
  html[data-look="night"] .nav__dd-panel { background: var(--n-bg-2); box-shadow: none; }
  html[data-look="night"] .nav__dd-list::after { border-bottom-color: var(--n-line); }
  html[data-look="night"] .nav__dd-item:hover { background: var(--n-bg-2); }
}

/* the design switch, dark */
html[data-look="night"] .look-toggle { background: rgba(255, 255, 255, .03); border-color: var(--n-line-2); color: #fbd38d; box-shadow: none; }
html[data-look="night"] .look-toggle:hover { border-color: rgba(183, 164, 255, .55); color: #ffe2a8; box-shadow: 0 0 0 4px rgba(143, 99, 246, .16); }
html[data-look="night"] .ask-trigger { background: rgba(255, 255, 255, .03); border-color: var(--n-line-2); color: var(--n-muted); box-shadow: none; }
html[data-look="night"] .ask-trigger:hover { border-color: rgba(183, 164, 255, .55); color: var(--n-body); box-shadow: 0 0 0 4px rgba(143, 99, 246, .16); }
html[data-look="night"] .ask-trigger__icon { color: var(--n-violet-text); }
html[data-look="night"] .ask-key { background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); color: var(--n-muted); }
@media (max-width: 991px) {
  html[data-look="night"] .look-toggle,
  html[data-look="night"] .ask-trigger { background: transparent; border-color: transparent; box-shadow: none; }
  /* phones: no box around the header icons after a tap (touch keeps :hover) */
  html[data-look="night"] .look-toggle:hover,
  html[data-look="night"] .ask-trigger:hover { box-shadow: none; border-color: transparent; }
  html[data-look="night"] .ask-trigger { color: var(--n-ink); }
  html[data-look="night"] .ask-trigger__icon { color: inherit; }   /* the magnifier in the same ink as the menu icon */
}
html[data-look="night"] .look-seg { background: rgba(255, 255, 255, .03); border-color: var(--n-line-2); }
html[data-look="night"] .look-seg__btn { color: var(--n-muted); }
html[data-look="night"] .look-seg__btn:hover { color: var(--n-ink); }
html[data-look="night"] .look-seg__btn[aria-pressed="true"] {
  color: #fff; background: linear-gradient(180deg, #7d50e8, #6339d0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 18px -6px rgba(143, 99, 246, .8);
}

/* ---------------------------------------------------------------- buttons: violet that glows */
html[data-look="night"] .btn:not(.btn--light),
html[data-look="night"] .fform__submit {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 28px -10px rgba(143, 99, 246, .85);
}
html[data-look="night"] .btn:not(.btn--light):hover,
html[data-look="night"] .fform__submit:hover {
  background-color: #7a4ae6; border-color: #7a4ae6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 34px -8px rgba(143, 99, 246, 1);
}
html[data-look="night"] .signup__button { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 28px -10px rgba(143, 99, 246, .85); }
html[data-look="night"] .signup__button:hover { background-color: #7a4ae6; }

/* ---------------------------------------------------------------- fields: raised on the page */
html[data-look="night"] :is(.signup__input, .field, .fform__field) {
  background-color: var(--n-surface); border-color: rgba(255, 255, 255, .13); color: var(--n-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
html[data-look="night"] :is(.signup__input, .field, .fform__field)::placeholder { color: #8b8da0; }
html[data-look="night"] :is(.signup__input, .field, .fform__field):focus {
  border-color: rgba(183, 164, 255, .7); box-shadow: 0 0 0 4px rgba(143, 99, 246, .22);
}
html[data-look="night"] .form-done { background: rgba(143, 99, 246, .14); color: var(--n-ink); border: 1px solid rgba(183, 164, 255, .25); }

/* ---------------------------------------------------------------- frame lines, rules and the hatched bands */
html[data-look="night"] :is(.rule, .footer__rule) { background: var(--n-line); }
html[data-look="night"] .logo__card hr { background: var(--n-line-2); }
html[data-look="night"] .band__inner { background: var(--n-bg-2) var(--n-lines) 0 0; }
html[data-look="night"] .case__texture { background-image: var(--n-lines); }

/* ---------------------------------------------------------------- the homepage hero melts into the page */
html[data-look="night"] .hero { background-color: var(--n-bg); }
/* the "Outreaching" / "Meeting booked" badge is part of Frank's light product picture, and its day animation repaints
   the light pills anyway: it keeps its own light pill and dark words (the green a step darker, for 4.5:1) */
html[data-look="night"] .hero__badge { background: #e2f8e9; }
html[data-look="night"] .hero__badge-text { color: #067647; }
html[data-look="night"] .hero__badge-text--violet { color: #6e40d7; }
html[data-look="night"] .hero__fade { background-image: linear-gradient(180deg, var(--n-bg) 42%, rgba(11, 12, 17, .05)); }
html[data-look="night"] .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(143, 99, 246, 0), rgba(183, 164, 255, .45) 30%, rgba(254, 166, 104, .4) 70%, rgba(254, 166, 104, 0));
}

/* ---------------------------------------------------------------- customer logos: one quiet white */
html[data-look="night"] img.logo__img { filter: brightness(0) invert(1); opacity: .74; transition: opacity .3s; }
html[data-look="night"] .logo:hover img.logo__img { opacity: 1; }
/* logos drawn on their own white box: turn the ink light and let the box vanish into the page */
html[data-look="night"] img.logo__img:is(.logo__img--netnew, .logo__img--netnew-s) {
  filter: grayscale(1) invert(1) brightness(1.35) contrast(1.15); mix-blend-mode: screen; opacity: .82;
}
html[data-look="night"] .case__line img { filter: brightness(0) invert(1); opacity: .92; }
html[data-look="night"] .logo__card { background: var(--n-surface); border-color: var(--n-line-2); box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .8); }
html[data-look="night"] .logo__card-logo { filter: brightness(0) invert(1); opacity: .9; }
/* Net New Solutions in its hover card is also drawn on its own white box */
html[data-look="night"] .logo__card-logo[src$="image-193.avif"] {
  filter: grayscale(1) invert(1) brightness(1.35) contrast(1.15); mix-blend-mode: screen; opacity: .85;
}
html[data-look="night"] .quote-box { background-image: linear-gradient(45deg, rgba(143, 99, 246, .18), rgba(143, 99, 246, 0) 55%); border-left-color: var(--n-violet-2); }
html[data-look="night"] .pill { background: rgba(255, 255, 255, .04); border: 1px solid var(--n-line); color: #dcdce6; }

/* ---------------------------------------------------------------- product pictures: lit objects */
html[data-look="night"] .feature__art { box-shadow: var(--n-glow); }
html[data-look="night"] .feature__shot { background-color: rgba(243, 243, 243, .7); }   /* the product pictures stay as Frank made them */
html[data-look="night"] .case { background: rgba(255, 255, 255, .015); }
html[data-look="night"] .case-badge { background: var(--n-surface-2); border-color: var(--n-line-2); color: #d6d7e1; }

/* ---------------------------------------------------------------- footer */
html[data-look="night"] .footer {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(143, 99, 246, .12), rgba(143, 99, 246, 0) 70%),
    var(--n-bg);
  border-top: 1px solid var(--n-line);
}
html[data-look="night"] .footer__label { color: var(--n-muted); opacity: 1; letter-spacing: .04em; }
html[data-look="night"] .footer__link { color: #dedfe8; }
html[data-look="night"] .footer__link:hover { color: #fff; }
html[data-look="night"] .footer__copy { color: var(--n-muted); }
html[data-look="night"] .footer__note { color: #8b8da0; }   /* about 6:1, still a step below the copyright line */
html[data-look="night"] .fcard { border-color: rgba(143, 99, 246, .9); box-shadow: 0 0 0 1px rgba(143, 99, 246, .2), 0 30px 80px -30px rgba(143, 99, 246, .7); }
html[data-look="night"] .fcard__inner { background: linear-gradient(180deg, #17142a, #11121b 60%); }
html[data-look="night"] .fcard__grid { opacity: .05; filter: invert(1); }
html[data-look="night"] .fcard__title { color: var(--n-violet-text); }
html[data-look="night"] .fform__done { background: rgba(143, 99, 246, .14); }
/* the Tonality list: in day the chevron picture's white box covers the browser's own arrow; at night that box is
   blended away, so the browser's arrow goes instead, and the chevron turns a cool light grey */
html[data-look="night"] .fform__select { -webkit-appearance: none; appearance: none; color-scheme: dark; }
html[data-look="night"] .fform__chev { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; opacity: .8; }
/* the thank-you picture: its white discs become dark chips with light violet icons, and the dashed link shows */
html[data-look="night"] .fform__art { filter: invert(1) hue-rotate(180deg) brightness(1.15); }

@media (prefers-reduced-motion: reduce) {
  html[data-look="night"] img.logo__img { transition: none; }
}
