/* Forge Night (round 6): night-home.css. Night-only rules, each scoped under html[data-look="night"]. */
/* Scope: the homepage from the logo strip hover cards down to the end of the FAQ list. Every selector names one of
   those sections, so the hero, the path picker, the plan builder (#plan), the domain check and the stories are
   never touched. Loads after night-base.css, night.css, night-features.css and night-overlays.css. */

/* ================================================================ paragraphs: body grey under bright headings */
/* night-base turns the ".dark" paragraphs as bright as the headings; body grey gives the headings their lead back */
html[data-look="night"] .feature .feature__copy .dark,
html[data-look="night"] .stack .stack__lead,
html[data-look="night"] .integrations .dark,
html[data-look="night"] .cell__text,
html[data-look="night"] .faq__a-text { color: var(--n-body); }
/* the one-line tagline under the infrastructure copy stays bright: it is the punchline */
html[data-look="night"] .infra .feature__copy .infra__tagline { color: var(--n-ink); }

/* ================================================================ logo strip: the case cards that open on hover */
/* the logo grid is its own layer (z-index 101) with nothing painted in it, so the screen blend that melts the
   Net New Solutions logo box (night.css) had nothing to blend with and left a black box; the page colour behind
   the logos gives the blend its backdrop */
html[data-look="night"] .logos__grid { background-color: var(--n-bg); }
html[data-look="night"] .logo__card .quote-box__text { color: #d9dae4; }
html[data-look="night"] .logo__card .quote-box__text b { color: var(--n-ink); }
html[data-look="night"] .logo__card .person__name { color: var(--n-ink); }
html[data-look="night"] .logo__card .person__role { color: var(--n-muted); }
html[data-look="night"] .logo__card .person__photo { box-shadow: 0 0 0 1px var(--n-line-2); }

/* ================================================================ three cells */
/* the violet line icons sit on a pale lilac square inside the picture: smart invert gives a deep violet square
   with light violet lines */
html[data-look="night"] .cell__icon { filter: invert(1) hue-rotate(180deg); }
/* that deep square almost melts into the page, so a faint violet ring (on the square's own rounded corners)
   keeps the tile's edge; the ring passes through the same filter, so it is written in the inverted colour that
   comes out as the light violet #b7a4ff */
html[data-look="night"] .cell__icon { border-radius: 6.4px; box-shadow: 0 0 0 1px rgba(89, 70, 161, .22); }

/* ================================================================ "Every Aspect" stack table */
/* the table draws its frame with its own variables, which still hold the light greys; give them night values */
html[data-look="night"] .stack {
  --stack-line: var(--n-line);
  --stack-line-violet: rgba(143, 99, 246, .26);
  --stack-tag-violet: rgba(183, 164, 255, .34);
  --stack-arrow: var(--n-violet);
  --stack-pill-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7);
}

/* row 1: the seven steps */
html[data-look="night"] .stack-step { background: var(--n-bg-2); }
html[data-look="night"] .stack-step--brand {
  background: rgba(143, 99, 246, .09);
  border-bottom-color: var(--stack-line-violet); border-left-color: var(--stack-line-violet);
}
html[data-look="night"] .stack-step__icon { background: var(--n-surface); border-color: var(--n-line-2); box-shadow: none; }
html[data-look="night"] .stack-step--brand .stack-step__icon { background: rgba(143, 99, 246, .16); border-color: rgba(183, 164, 255, .3); }
/* black line icons turn white; the two violet ones turn light violet (smart invert) */
html[data-look="night"] .stack-step__icon img { filter: brightness(0) invert(1); opacity: .86; }
html[data-look="night"] .stack-step--brand .stack-step__icon img { filter: invert(1) hue-rotate(180deg); opacity: 1; }
html[data-look="night"] .stack-step--brand .stack-step__label { color: var(--n-violet-text); }

/* the pills on the lines between rows: opaque, so the line stops behind them */
html[data-look="night"] .stack-tag { background: var(--n-surface); border-color: var(--n-line-2); color: var(--n-body); }
html[data-look="night"] .stack-tag--violet { color: var(--n-violet-text); }

/* row 2: "Without the Forge" to-do panels, a faint lift that fades out like the light design's grey wash */
html[data-look="night"] .stack-todo__panel { background-image: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)); }
html[data-look="night"] .stack-todo__item { color: var(--n-body); }
html[data-look="night"] .stack-goal__label { color: var(--n-violet-text); }

/* row 3: product tiles, each a glass wash of its own brand colour instead of a muddy deep tint */
html[data-look="night"] .stack-tile--leads { background-image: linear-gradient(90deg, rgba(23, 178, 106, .14), rgba(23, 178, 106, 0)); }
html[data-look="night"] .stack-tile--prime { background-image: linear-gradient(90deg, rgba(5, 147, 214, .14), rgba(5, 147, 214, 0)); }
html[data-look="night"] .stack-tile--infra { background-image: linear-gradient(90deg, rgba(41, 112, 255, .15), rgba(41, 112, 255, 0)); }
html[data-look="night"] .stack-tile--mail { background-image: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)); }
html[data-look="night"] .stack-tile--warm { background-image: linear-gradient(90deg, rgba(253, 176, 34, .13), rgba(253, 176, 34, 0)); }
html[data-look="night"] .stack-tile--sales { background-image: linear-gradient(90deg, rgba(143, 99, 246, .16), rgba(143, 99, 246, 0)); }
/* Forge wordmarks (coloured mark, dark letters): smart invert keeps the mark's colour and lights the letters */
html[data-look="night"] .stack-logo { filter: invert(1) hue-rotate(180deg); }
/* the inverted Warmforge orange comes out burnt; a lift brings back the light design's bright orange */
html[data-look="night"] .stack-logo--warm { filter: invert(1) hue-rotate(180deg) brightness(1.3); }

/* offer pills: glass in the product's colour, text in the matching light tone */
html[data-look="night"] .stack-offer--leads { background: rgba(23, 178, 106, .16); color: #5ccc86; }
html[data-look="night"] .stack-offer--warm { background: rgba(253, 176, 34, .14); color: #fdc35c; }
html[data-look="night"] .stack-offer--sales,
html[data-look="night"] .stack-offer--frank { background: rgba(143, 99, 246, .18); color: var(--n-violet-text); }
/* the round arrow badge is drawn dark with a white arrow: smart invert gives a light badge with a dark arrow,
   the same contrast the light design has */
html[data-look="night"] .stack-offer__icon[src*="23ee040b61"] { filter: invert(1) hue-rotate(180deg); }

/* CRM panel: raised surface with a violet glow in the corner, as the light design's lilac corner */
html[data-look="night"] .stack-crm__panel {
  background-color: var(--n-surface);
  background-image: linear-gradient(135deg, rgba(143, 99, 246, 0) 52%, rgba(143, 99, 246, .16));
  box-shadow: inset 0 0 0 1px var(--n-line);
}
html[data-look="night"] .stack-crm__title { color: var(--n-body); }
/* CRM logos drawn in dark ink: light letters, brand marks keep their colour */
html[data-look="night"] .stack-crm__logo--hubspot path[fill="#33475B"],
html[data-look="night"] .stack-crm__logo--breakcold path[fill="#000"],
html[data-look="night"] .stack-crm__logo--attio path[fill="#1C1D1F"],
html[data-look="night"] .stack-crm__logo--folk path[fill="black"] { fill: #e6e7ef; }
html[data-look="night"] .stack-crm__logo--folk path[stroke="black"] { stroke: #e6e7ef; }
html[data-look="night"] .stack-crm__logo--pipedrive path { fill: #2fae6b; }
/* HighLevel is a picture: smart invert would turn its yellow arrow brown, so it goes one quiet white, beside the
   all-white attio and folk */
html[data-look="night"] img.stack-crm__logo--highlevel { filter: brightness(0) invert(1); opacity: .9; }

/* row 4: Agent Frank, a faint violet glass card */
html[data-look="night"] .stack-frank__card {
  background-image: linear-gradient(90deg, rgba(143, 99, 246, .09), rgba(143, 99, 246, .035) 50%, rgba(143, 99, 246, 0));
  color: var(--n-violet-text);
}
html[data-look="night"] .stack-frank__tag { background: #1e1831; border-color: var(--stack-tag-violet); color: var(--n-violet-text); }
html[data-look="night"] .stack-arrow { box-shadow: 0 8px 22px -6px rgba(143, 99, 246, .8); }

/* row 5: MCP, CLI and API cards; their pictures are product pictures and stay as they are */
html[data-look="night"] .stack-dev__card {
  background-color: var(--n-surface);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(143, 99, 246, .12));
}
/* near 1280 px the icon row runs into "Salesforge MCP" (as in day, where the dark P still shows through); at night the
   light letters would vanish under the white icons, so the label stays on top with the card colour fading out behind it */
html[data-look="night"] .stack-dev__lab {
  position: relative; z-index: 1; padding-right: 8px; margin-right: -8px;
  background: linear-gradient(90deg, var(--n-surface) 80%, rgba(21, 22, 32, 0));
}

/* ================================================================ testimonials */
/* the frame's right line matches its left line */
html[data-look="night"] .tst__frame { box-shadow: inset -1px 0 0 rgba(255, 255, 255, .087); }
/* night's larger heading size makes "10,000+ Businesses Run" fill a 320px phone edge to edge, touching the frame
   line; padding on the right to match the column's 8px on the left keeps it clear (night-only layout fix) */
@media (max-width: 479px) {
  html[data-look="night"] .tst__sticky { padding-right: 8px; }
}

/* G2 badge drawn in dark grey: light grey at night; the 40% veil that marks the empty part of the last star
   (4.6 of 5) turns from white to a dim grey, so that part reads as an unlit star */
html[data-look="night"] .tst-tile__g2 path[fill="#344054"] { fill: var(--n-body); }
html[data-look="night"] .tst-tile__g2 path[fill="#fff"] { fill: #4a4c5a; }

/* customer logos in the tiles: one quiet white, as in the logo strip */
html[data-look="night"] .tst-tile__logo { filter: brightness(0) invert(1); opacity: .78; }
/* the Net New Solutions logo is drawn on its own white box: light ink, and the box melts into the page */
html[data-look="night"] .tst-tile__logo--netnew {
  filter: grayscale(1) invert(1) brightness(1.35) contrast(1.15); mix-blend-mode: screen; opacity: .82;
}
/* the VAi Consulting logo is white letters on its own slate-blue box: pushing the box to black and blending it
   away leaves the white letters, in the same quiet white as the other customer logos */
html[data-look="night"] .tst-tile__logo--vai {
  filter: grayscale(1) brightness(.75) contrast(6); mix-blend-mode: screen; opacity: .8;
}

/* case cards: the purple and black cards keep the light design's highlights */
/* the purple card a touch deeper, so its lilac highlights read at phone sizes (4.6:1, the light design's lilac on
   this violet is 3.7:1); its pill keeps the card's own violet, as in the light design */
html[data-look="night"] .tst-case--unitesync { background: #6639cf; }
html[data-look="night"] .tst-case--unitesync .tst-case__hl { color: #e0ccff; }
html[data-look="night"] .tst-case--unitesync .tst-case__circle { background: #fff; }
html[data-look="night"] .tst-case--unitesync .tst-case__badge { background: #6639cf; border-color: #b692f6; }
html[data-look="night"] .tst-case--akool .tst-case__badge { border-color: rgba(255, 255, 255, .4); }
/* the VidLab7 logo inside the heading: dark navy letters, so smart invert lights them and keeps the blue mark */
html[data-look="night"] .tst-case__logo--vidlab { filter: invert(1) hue-rotate(180deg); }

/* quote slider */
html[data-look="night"] .tst-slide__role { color: var(--n-body); }
html[data-look="night"] .tst-slider__arrow { background-color: var(--n-bg-2); color: var(--n-muted); }
html[data-look="night"] .tst-slider__arrow:hover { color: var(--n-ink); }
html[data-look="night"] .tst-slider__arrow:focus-visible { outline-color: var(--n-violet-text); }
/* the hatch behind the arrows: the light design's black lines vanish at night, so use the white night hatch,
   mirrored on the lower arrow as the light design mirrors it */
html[data-look="night"] .tst-slider__texture { background-image: var(--n-lines); }
html[data-look="night"] .tst-slider__arrow--next .tst-slider__texture { background-image: var(--n-lines); transform: scaleX(-1); }
html[data-look="night"] .tst-slider__dot { background: rgba(255, 255, 255, .2); }
html[data-look="night"] .tst-slider__dot[aria-current="true"] { background: var(--n-violet-2); }
html[data-look="night"] .tst-slider__dot:focus-visible { outline-color: var(--n-violet-text); }

/* ================================================================ email infrastructure diagram */
/* the diagram is a product illustration and keeps its white card; its stage gets a soft violet light */
html[data-look="night"] .feature__art.infra__art {
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(143, 99, 246, .16), rgba(143, 99, 246, 0) 72%),
    var(--n-surface);
}
/* the moving dots run over the white card, so they keep the light design's lilac halo */
html[data-look="night"] .infra__dot { box-shadow: 0 0 0 4px #e9d7fe; }

/* ================================================================ FAQ rows */
/* the plus-in-a-ring: ring and cross in one quiet grey, brighter on hover, violet while open */
html[data-look="night"] .faq__icon { border-color: #74768a; }
html[data-look="night"] .faq__icon::before,
html[data-look="night"] .faq__icon::after { background: #74768a; }
html[data-look="night"] .faq__q:hover .faq__icon { border-color: var(--n-body); }
html[data-look="night"] .faq__q:hover .faq__icon::before,
html[data-look="night"] .faq__q:hover .faq__icon::after { background: var(--n-body); }
html[data-look="night"] .faq__item.is-open .faq__icon { border-color: var(--n-violet-text); }
html[data-look="night"] .faq__item.is-open .faq__icon::before,
html[data-look="night"] .faq__item.is-open .faq__icon::after { background: var(--n-violet-text); }
