/* Forge Night (round 6): night-overlays.css. Night-only rules, each scoped under html[data-look="night"]. */

/* Scope: round 4 "Ask anything" (ask.css: the FAQ question bars, the panel, its answers, worked-out cards, "Ask the
   team" form and the place an answer points to) and round 5 stories (tour.css: the ring rows in the heroes and the
   full-screen player). The header button belongs to night.css. Only colours, borders, shadows and filters change here:
   no sizes, spacing or layout. */


/* ================================================================ round 4: Ask anything */

/* ---------------------------------------------------------------- the question bar in the FAQ sections */
/* it looks like a search field, so it sits raised on the page like the other night fields */
html[data-look="night"] .ask-inline {
  background-color: var(--n-surface); border-color: rgba(255, 255, 255, .13); color: #8b8da0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
html[data-look="night"] .ask-inline:hover { border-color: rgba(183, 164, 255, .55); box-shadow: 0 0 0 4px rgba(143, 99, 246, .16); }
html[data-look="night"] .ask-inline:focus-visible { outline-color: var(--n-violet-text); }
html[data-look="night"] .ask-inline__icon { color: var(--n-violet-text); }
/* the "Ask" button glows like the other primary buttons of the night look */
html[data-look="night"] .ask-inline__go {
  background-color: var(--n-violet);
  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 8px 22px -10px rgba(143, 99, 246, .85);
}
html[data-look="night"] .ask-inline:hover .ask-inline__go { background-color: #7a4ae6; }

/* ---------------------------------------------------------------- the box: a raised panel over a deeper night */
html[data-look="night"] .ask__backdrop { background: rgba(5, 6, 10, .62); }
html[data-look="night"] .ask__panel {
  background: var(--n-surface);
  box-shadow: 0 0 0 1px var(--n-line-2), inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 90px -20px rgba(0, 0, 0, .85);
}
/* phones: the box fills the screen, so it needs no frame or shadow (as on the day phone) */
@media (max-width: 767px) {
  html[data-look="night"] .ask__panel { box-shadow: none; }
}
html[data-look="night"] .ask__bar { border-bottom-color: var(--n-line); }
html[data-look="night"] .ask__icon { color: var(--n-violet-text); }
html[data-look="night"] .ask__input { color: var(--n-ink); caret-color: var(--n-violet-text); }
html[data-look="night"] .ask__input::placeholder { color: #8b8da0; }
html[data-look="night"] .ask__clear { color: var(--n-muted); }
html[data-look="night"] .ask__clear:hover { background: rgba(255, 255, 255, .05); color: var(--n-ink); }
/* the Esc key cap matches the key cap of the header button */
html[data-look="night"] .ask__esc-key { background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); color: var(--n-muted); }
html[data-look="night"] .ask__esc:hover .ask__esc-key { border-color: rgba(255, 255, 255, .24); color: var(--n-body); }
html[data-look="night"] .ask__esc-word { color: var(--n-violet-text); }

/* ---------------------------------------------------------------- the list: labels, popular questions, examples */
html[data-look="night"] .ask__label,
html[data-look="night"] .ask__wait { color: var(--n-muted); }
/* the row under the keyboard or the mouse: a quiet lift, with the violet bar at its left */
html[data-look="night"] .ask__opt.is-active { background: rgba(255, 255, 255, .05); }
html[data-look="night"] .ask__opt::before { background: var(--n-violet-2); }
html[data-look="night"] .ask__row { color: var(--n-ink); }
html[data-look="night"] .ask__row-icon { background: rgba(143, 99, 246, .14); color: var(--n-violet-text); }
html[data-look="night"] .ask__row-go { color: var(--n-muted); }

/* ---------------------------------------------------------------- answers */
html[data-look="night"] .ask__src { color: var(--n-muted); }
html[data-look="night"] .ask__src-page { color: var(--n-violet-text); }
html[data-look="night"] .ask__title { color: var(--n-ink); }
html[data-look="night"] .ask__snip { color: var(--n-muted); }
html[data-look="night"] .ask__full { color: var(--n-body); }
/* the open answer: violet glass instead of a muddy deep tint */
html[data-look="night"] .ask__hit.is-open,
html[data-look="night"] .ask__hit.is-open.is-active { background: rgba(143, 99, 246, .1); }
/* the words that matched the question: lit violet, the word itself in full white */
html[data-look="night"] .ask mark { background: rgba(143, 99, 246, .22); color: var(--n-ink); }

/* buttons under an answer: the primary glows, the light one is glass, the copy button a quiet square */
html[data-look="night"] .ask__btn--primary {
  background-color: var(--n-violet); border-color: var(--n-violet);
  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 8px 22px -10px rgba(143, 99, 246, .85);
}
html[data-look="night"] .ask__btn--primary:hover { background-color: #7a4ae6; border-color: #7a4ae6; }
html[data-look="night"] .ask__btn--light { background: rgba(255, 255, 255, .04); border-color: var(--n-line-2); color: var(--n-ink); box-shadow: none; }
html[data-look="night"] .ask__btn--light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
html[data-look="night"] .ask__btn--icon { background: rgba(255, 255, 255, .04); border-color: var(--n-line-2); color: var(--n-muted); }
html[data-look="night"] .ask__btn--icon:hover { color: var(--n-violet-text); border-color: rgba(255, 255, 255, .22); }
html[data-look="night"] .ask__btn--icon.is-done { color: #5ccc86; border-color: rgba(92, 204, 134, .45); background: rgba(23, 178, 106, .1); }
/* the "Copy link" tip: a raised dark label with a hairline, readable on the panel and on violet glass */
html[data-look="night"] .ask__tip { background: var(--n-surface-3); color: var(--n-ink); box-shadow: 0 0 0 1px var(--n-line-2), 0 8px 20px -8px rgba(0, 0, 0, .7); }
html[data-look="night"] .ask__link { color: var(--n-violet-text); text-decoration-color: rgba(183, 164, 255, .55); }
html[data-look="night"] .ask__link:hover { text-decoration-color: currentColor; }
/* keyboard focus: the bright violet ring of the night look */
html[data-look="night"] .ask__btn:focus-visible,
html[data-look="night"] .ask__link:focus-visible,
html[data-look="night"] .ask__more-btn:focus-visible,
html[data-look="night"] .ask__clear:focus-visible,
html[data-look="night"] .ask__esc:focus-visible { outline-color: var(--n-violet-text); }

/* ---------------------------------------------------------------- worked-out answers (price cards, domain check) */
/* violet glass with a lilac hairline, a little brighter while it is the chosen row */
html[data-look="night"] .ask__card {
  border-color: rgba(183, 164, 255, .22);
  background: linear-gradient(180deg, rgba(143, 99, 246, .13) 0%, rgba(143, 99, 246, .03) 70%);
}
html[data-look="night"] .ask__card.is-active { background: linear-gradient(180deg, rgba(143, 99, 246, .19) 0%, rgba(143, 99, 246, .05) 70%); }
html[data-look="night"] .ask__card-label { color: var(--n-violet-text); }
html[data-look="night"] .ask__big { color: var(--n-ink); }
html[data-look="night"] .ask__per { color: var(--n-muted); }
html[data-look="night"] .ask__line { border-top-color: rgba(255, 255, 255, .1); }
html[data-look="night"] .ask__line-name { color: var(--n-ink); }
html[data-look="night"] .ask__line-sub { color: var(--n-muted); }
html[data-look="night"] .ask__line-value { color: var(--n-body); }
html[data-look="night"] .ask__note { color: var(--n-muted); }

/* ---------------------------------------------------------------- no answer: ask the team */
html[data-look="night"] .ask__none { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .015); }
html[data-look="night"] .ask__none-title { color: var(--n-ink); }
html[data-look="night"] .ask__none-sub { color: var(--n-muted); }
/* the email field follows the night fields: dark surface, soft border, violet focus ring */
html[data-look="night"] .ask__team-input {
  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"] .ask__team-input::placeholder { color: #8b8da0; }
html[data-look="night"] .ask__team-input:focus { border-color: rgba(183, 164, 255, .7); box-shadow: 0 0 0 4px rgba(143, 99, 246, .22); }
/* the thank-you line: the night success colours */
html[data-look="night"] .ask__team-done { color: var(--n-ink); }
html[data-look="night"] .ask__ok { background: rgba(23, 178, 106, .16); color: #5ccc86; box-shadow: inset 0 0 0 1px rgba(92, 204, 134, .35); }
html[data-look="night"] .ask__more { color: var(--n-muted); }
html[data-look="night"] .ask__more-btn { color: var(--n-violet-text); text-decoration-color: rgba(183, 164, 255, .55); }

/* ---------------------------------------------------------------- the footer strip with the keys: recessed, as on the day panel */
html[data-look="night"] .ask__foot { background: var(--n-bg-2); border-top-color: var(--n-line); color: var(--n-muted); }
html[data-look="night"] .ask__keys kbd { background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); color: var(--n-body); }

/* ---------------------------------------------------------------- the place an answer points to */
/* the day flash fades to a pale lilac, which would hide the light text of the night page: at night the place fades
   in and out in violet glass instead, with the day's timing (2.6 s: in by 10 percent, held to 70, out by 100) */
@keyframes ask-flash-night {
  0% { background-color: rgba(143, 99, 246, 0); box-shadow: 0 0 0 0 rgba(143, 99, 246, 0); }
  10%, 70% { background-color: rgba(143, 99, 246, .16); box-shadow: 0 0 0 10px rgba(143, 99, 246, .16); }
  100% { background-color: rgba(143, 99, 246, 0); box-shadow: 0 0 0 10px rgba(143, 99, 246, 0); }
}
html[data-look="night"] .ask-flash { animation: ask-flash-night 2.6s ease-out 1; background-color: transparent; box-shadow: none; }
/* with motion turned off, and in the still screenshot mode, the place simply shows lit, as in day */
@media (prefers-reduced-motion: reduce) {
  html[data-look="night"] .ask-flash { animation: none; background-color: rgba(143, 99, 246, .16); box-shadow: 0 0 0 10px rgba(143, 99, 246, .16); }
}
html[data-look="night"].shot .ask-flash { animation: none; background-color: rgba(143, 99, 246, .16); box-shadow: 0 0 0 10px rgba(143, 99, 246, .16); }


/* ================================================================ round 5: stories */

/* ---------------------------------------------------------------- the ring rows in the heroes */
/* at night every hero is dark, so both tones of the row share the dark-hero design: a glass pill with a white play
   disc, rings of violet light with a gap of the night page between the ring and the picture */
html[data-look="night"] .tour-bar .tour-bar__play { color: var(--n-ink); background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); }
html[data-look="night"] .tour-bar .tour-bar__play:hover { background: rgba(255, 255, 255, .09); border-color: rgba(183, 164, 255, .45); }
html[data-look="night"] .tour-bar .tour-bar__play-icon { background: #fff; color: var(--n-violet); }
html[data-look="night"] .tour-bar .tour-ring { color: #dcdce6; }
html[data-look="night"] .tour-ring__disc { background: conic-gradient(from 210deg, #9e77ed, #6e40d7, #d6bbfb, #9e77ed); }
html[data-look="night"] .tour-bar .tour-ring__disc img,
html[data-look="night"] .tour-bar .tour-ring__icon { border-color: var(--n-bg); }
/* a story already watched: its ring goes quiet */
html[data-look="night"] .tour-bar .tour-ring.is-seen .tour-ring__disc { background: rgba(255, 255, 255, .22); }
html[data-look="night"] .tour-bar .tour-ring:focus-visible,
html[data-look="night"] .tour-bar .tour-bar__play:focus-visible { outline-color: var(--n-violet-text); }

/* ---------------------------------------------------------------- the player: scrim and card */
html[data-look="night"] .tour__scrim { background: rgba(6, 7, 11, .88); }
/* the card is the night homepage hero in small: the same picture, fading up into the night ink */
html[data-look="night"] .tour__card {
  background-color: var(--n-bg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--n-line-2);
}
html[data-look="night"] .tour__card::before { background: linear-gradient(180deg, var(--n-bg) 40%, rgba(11, 12, 17, .2)); }
@media (max-width: 640px), (max-height: 520px) {
  html[data-look="night"] .tour__card { box-shadow: none; }
}

/* progress bars: white fill on a faint track, as in every story player */
html[data-look="night"] .tour__seg { background: rgba(255, 255, 255, .24); }
html[data-look="night"] .tour__fill { background: var(--n-ink); }

/* the story's own ring at the top left: violet light, a gap of the card's ink */
html[data-look="night"] .tour__avatar { background: conic-gradient(from 210deg, #9e77ed, #6e40d7, #d6bbfb, #9e77ed); }
html[data-look="night"] .tour__avatar img,
html[data-look="night"] .tour__avatar-icon { border-color: var(--n-bg); }
html[data-look="night"] .tour__sub { color: rgba(255, 255, 255, .62); }
html[data-look="night"] .tour__tip { background: var(--n-surface-3); color: var(--n-ink); box-shadow: 0 0 0 1px var(--n-line-2), 0 8px 20px -8px rgba(0, 0, 0, .7); }
html[data-look="night"] .tour :focus-visible { outline-color: var(--n-violet-text); }

/* ---------------------------------------------------------------- inside the slides */
/* the accent words of the story headings: the night accent, as on every heading of the night page */
html[data-look="night"] .tour-hl {
  color: #d3c3ff; background-image: var(--n-accent);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-look="night"] .tour-tag { color: var(--n-violet-text); background: rgba(143, 99, 246, .16); border-color: rgba(183, 164, 255, .28); }
/* Frank's product pictures: lit objects */
html[data-look="night"] .tour-shot__img { box-shadow: var(--n-glow); }

/* customer logos: the chip turns to glass and the logo to one quiet white, as in the logo strips */
html[data-look="night"] .tour-logo { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--n-line-2); }
html[data-look="night"] .tour-logo__img { filter: brightness(0) invert(1); opacity: .86; }

/* Agent Frank's portrait fades into the night ink */
html[data-look="night"] .tour-bg__fade {
  background: linear-gradient(180deg, rgba(11, 12, 17, .55) 0, rgba(11, 12, 17, 0) 22%, rgba(11, 12, 17, 0) 36%, rgba(11, 12, 17, .92) 66%, var(--n-bg) 100%);
}
html[data-look="night"] .tour-chips li { color: var(--n-ink); background: rgba(255, 255, 255, .07); border-color: var(--n-line-2); }

/* Wall of Love: the chat pictures stay as Frank made them, framed by a hairline */
html[data-look="night"] .tour-wall__img { background: #fff; box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }

/* "Classic" SDR against Agent Frank: the old cost is a quiet card, Agent Frank's is lit violet */
html[data-look="night"] .tour-vs__card { background: rgba(255, 255, 255, .04); border-color: var(--n-line-2); }
html[data-look="night"] .tour-vs__card--now {
  background: linear-gradient(180deg, rgba(143, 99, 246, .3), rgba(143, 99, 246, .14));
  border-color: rgba(183, 164, 255, .55); color: var(--n-ink);
  box-shadow: 0 20px 50px -16px rgba(143, 99, 246, .75);
}
html[data-look="night"] .tour-vs__card--now .tour-vs__name { color: var(--n-violet-text); }
html[data-look="night"] .tour-vs__card--now .tour-vs__per { color: var(--n-body); }

/* the big case-study numbers: white heating up to violet */
html[data-look="night"] .tour-big {
  color: #d6bbfb; background-image: linear-gradient(100deg, #ffffff 10%, #d6bbfb 55%, #9e77ed 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-look="night"] .tour-quote { background: rgba(255, 255, 255, .05); border-color: var(--n-line-2); }

/* the domain check hand-off: a night panel with records being read in violet */
html[data-look="night"] .tour-dns {
  background: var(--n-surface); color: var(--n-ink);
  box-shadow: 0 0 0 1px var(--n-line-2), 0 24px 60px -18px rgba(143, 99, 246, .55);
}
html[data-look="night"] .tour-dns__row { background: var(--n-surface-2); border-color: var(--n-line); }
html[data-look="night"] .tour-dns__key { color: var(--n-ink); }
html[data-look="night"] .tour-dns__bar { background: rgba(255, 255, 255, .08); }
html[data-look="night"] .tour-dns__bar::after { background: linear-gradient(90deg, #d6bbfb, #9e77ed); }

/* the two paths: a glass card for the Human Path, violet glass for the Agent Path */
html[data-look="night"] .tour-path { background: rgba(255, 255, 255, .04); border-color: var(--n-line-2); }
html[data-look="night"] .tour-path--agent { background: rgba(143, 99, 246, .2); border-color: rgba(183, 164, 255, .42); }
html[data-look="night"] .tour-path__icon { background: rgba(255, 255, 255, .1); color: var(--n-ink); }
html[data-look="night"] .tour-path__price { color: var(--n-violet-text); }

/* ---------------------------------------------------------------- buttons at the bottom */
html[data-look="night"] .tour__foot { background: linear-gradient(0deg, rgba(11, 12, 17, .96) 30%, rgba(11, 12, 17, 0)); }
html[data-look="night"] .tour-cta {
  background-color: var(--n-violet);
  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 12px 30px -10px rgba(143, 99, 246, .85);
}
html[data-look="night"] .tour-cta:hover { background-color: #7a4ae6; }
/* "Start a free trial" is the second choice: glass with a hairline, as the light buttons of the night look */
html[data-look="night"] .tour-cta--human {
  background-color: rgba(255, 255, 255, .06); background-image: none; color: var(--n-ink);
  box-shadow: inset 0 0 0 1px var(--n-line-2);
}
html[data-look="night"] .tour-cta--human:hover { background-color: rgba(255, 255, 255, .11); }
html[data-look="night"] .tour-link { color: var(--n-ink); background: rgba(255, 255, 255, .08); }
html[data-look="night"] .tour-link:hover { background: rgba(255, 255, 255, .14); }
/* "Link copied": a raised dark label with a hairline */
html[data-look="night"] .tour__toast { background: var(--n-surface-3); color: var(--n-ink); box-shadow: 0 0 0 1px var(--n-line-2), 0 8px 20px -8px rgba(0, 0, 0, .7); }

/* ---------------------------------------------------------------- arrows beside the card, and inside it when motion is off */
html[data-look="night"] .tour__nav,
html[data-look="night"] .tour__step {
  color: var(--n-ink); background: rgba(30, 31, 44, .92);
  box-shadow: 0 0 0 1px var(--n-line-2), 0 8px 24px -8px rgba(0, 0, 0, .7);
}
html[data-look="night"] .tour__nav:hover,
html[data-look="night"] .tour__step:hover { background: var(--n-surface-3); }
