/* Forge Night (round 6): night-features.css. Night-only rules, each scoped under html[data-look="night"]. */
/* Owner: the "features" helper. Covers round 1 (path.css: the hero path picker, the story drawn on the hero picture,
   the dock on every page, the "Your path" marks on Pricing), round 2 (plan.css: the plan builder #plan) and
   round 3 (domain.css: the domain check #domain-check). Loads after night-base.css and night.css. */


/* ================================================================ round 1: the path picker in the homepage hero */

/* the two option cards: a quiet glass card with a visible hairline (night-base had faded the line away) */
html[data-look="night"] .pick__opt {
  border-color: var(--n-line-2); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
html[data-look="night"] .pick__opt:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .07); }

/* the chosen card: violet glass with a violet edge and a soft glow, instead of the page-black card night-base gave it */
html[data-look="night"] .pick__opt.is-on {
  border-color: rgba(183, 164, 255, .6); background: rgba(143, 99, 246, .14); color: var(--n-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 34px -14px rgba(143, 99, 246, .75);
}

/* keyboard focus around the whole card, in the night focus colour */
html[data-look="night"] .pick__opt:has(.pick__input:focus-visible) { outline-color: var(--n-violet-text); }

/* the radio dot: an empty ring, then a violet dot inside a ring of the chosen card's own colour */
html[data-look="night"] .pick__opt::after { border-color: rgba(255, 255, 255, .34); }
html[data-look="night"] .pick__opt:hover::after { border-color: rgba(255, 255, 255, .5); }
html[data-look="night"] .pick__opt.is-on::after {
  border-color: var(--n-violet-2); background: var(--n-violet-2); box-shadow: inset 0 0 0 2.5px #1e1831;
}

/* the person icon of the Human Path, and its violet look once chosen */
html[data-look="night"] .pick__icon { background: rgba(255, 255, 255, .08); color: var(--n-ink); }
html[data-look="night"] .pick__opt.is-on .pick__icon--human { background: rgba(143, 99, 246, .28); color: #e4dcff; }

/* the small lines under each title: who runs it (secondary grey) and the price (night violet) */
html[data-look="night"] .pick__who { color: var(--n-muted); }
html[data-look="night"] .pick__opt.is-on .pick__who { color: var(--n-body); }
html[data-look="night"] .pick__price,
html[data-look="night"] .pick__opt.is-on .pick__price { color: var(--n-violet-text); }


/* ---------------------------------------------------------------- round 1: the story drawn on the hero picture */
/* These pieces sit on Frank's light product picture and copy its own pills, so they keep the picture's light colours. */
/* "Meeting booked": the picture's own mint pill; its green words a step darker so they read at 4.5:1 */
html[data-look="night"] .story__end {
  background: #e2f8e9; color: #067647; box-shadow: 0 .5cqw 2cqw rgba(9, 146, 80, .28), 0 0 0 .25cqw #fff;
}
html[data-look="night"] .story__agent { background: #f4f5f7; color: #475467; }   /* covers the picture's own "Hunting" label */
html[data-look="night"] .story__check { box-shadow: 0 0 0 .25cqw #eaf3fb; }
/* the path not chosen is veiled in the night ink rather than the day's navy (data-path sits on <html> itself) */
html[data-look="night"][data-path="agent"] .story__card--human,
html[data-look="night"][data-path="human"] .story__card--agent { background: rgba(11, 12, 17, .62); }
@media (hover: hover) {
  html[data-look="night"][data-path="agent"] .story__card--human:hover,
  html[data-look="night"][data-path="human"] .story__card--agent:hover { background: rgba(11, 12, 17, .45); }
}


/* ---------------------------------------------------------------- round 1: the dock that follows the visitor */

/* the bar: raised frosted glass with a hairline edge and a deep shadow, like the night header; dense enough that
   Frank's light product pictures scrolling under it do not lighten it */
html[data-look="night"] .dock__inner {
  border-color: var(--n-line-2); background: rgba(30, 31, 44, .92); color: var(--n-ink);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px -24px rgba(0, 0, 0, .7), 0 12px 40px -20px rgba(143, 99, 246, .28);
}

/* the two path chips of the "choose" state */
html[data-look="night"] .dock__chip { border-color: var(--n-line-2); background: rgba(255, 255, 255, .04); color: var(--n-ink); }
html[data-look="night"] .dock__chip:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); }
html[data-look="night"] .dock__chip-price { color: var(--n-violet-text); }

/* the round avatar: Frank's photo stays as it is, the person icon of the Human Path sits on violet glass */
html[data-look="night"] .dock__avatar { background: rgba(143, 99, 246, .22); color: var(--n-violet-text); }

/* the "chosen" state: price line in grey, the switch link in night violet */
html[data-look="night"] .dock__meta { color: var(--n-muted); }
html[data-look="night"] .dock__switch { color: var(--n-violet-text); text-decoration-color: rgba(183, 164, 255, .4); }
html[data-look="night"] .dock__switch:hover { color: var(--n-ink); text-decoration-color: currentColor; }

/* the violet button glows like every night button (sheen on top, the arrow picture kept at its place) */
html[data-look="night"] .dock__cta {
  background-image: url("../img/hubspot-button-arrow.svg"), linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  background-position: calc(100% - 4px) 50%, 0 0; background-repeat: no-repeat; background-size: auto, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 28px -10px rgba(143, 99, 246, .85);
}
html[data-look="night"] .dock__cta:hover { background-color: #7a4ae6; }

/* the email field of the "form" state: a recessed night field with the night focus ring */
html[data-look="night"] .dock__input {
  border-color: rgba(255, 255, 255, .13); background: var(--n-surface); color: var(--n-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
html[data-look="night"] .dock__input::placeholder { color: #8b8da0; }
html[data-look="night"] .dock__input:focus { border-color: rgba(183, 164, 255, .7); box-shadow: 0 0 0 4px rgba(143, 99, 246, .22); }

/* the close button and the focus ring of every control in the dock */
html[data-look="night"] .dock__close { color: var(--n-muted); }
html[data-look="night"] .dock__close:hover { color: var(--n-ink); background: rgba(255, 255, 255, .08); }
html[data-look="night"] .dock :focus-visible { outline-color: var(--n-violet-text); }

@media (max-width: 640px) {
  /* on phones the bar is a sheet on the bottom edge: its shadow falls upward onto the page */
  html[data-look="night"] .dock__inner {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 -16px 40px -16px rgba(0, 0, 0, .7);
  }
  /* the button keeps its sheen; the arrow shows only on the round send button, centred, as in the day look */
  html[data-look="night"] .dock__cta { background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%); background-position: 0 0; background-size: 100% 100%; }
  html[data-look="night"] .dock__submit {
    background-image: url("../img/hubspot-button-arrow.svg"), linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
    background-position: 50% 50%, 0 0; background-size: auto, 100% 100%;
  }
}


/* ---------------------------------------------------------------- round 1: "Your path" on the Pricing plans */
/* the small label: violet glass beside the Human Path heading, dark glass on the violet Agent Frank panel */
html[data-look="night"] .path-tag { background: rgba(143, 99, 246, .16); color: var(--n-violet-text); }
html[data-look="night"] .path-tag--agent { background: rgba(11, 12, 17, .4); color: #fff; }
/* the highlight: a bright violet ring with a soft glow round the Pro and Growth cards, a white ring round Frank's box */
html[data-look="night"][data-path="human"] .plans__human .plans__card {
  box-shadow: 0 0 0 2px var(--n-violet-2), 0 18px 44px -18px rgba(143, 99, 246, .6);
}
html[data-look="night"][data-path="agent"] .plans__ai-box {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 7px rgba(255, 255, 255, .16), 0 24px 48px -16px rgba(0, 0, 0, .6);
}


/* ================================================================ round 2: the plan builder (#plan) */

/* the dark card keeps Frank's artwork; a hairline edge sets it on the night page */
html[data-look="night"] .outbound__card.plan { box-shadow: 0 0 0 1px var(--n-line-2); }

/* the answer chips on the artwork: glass with a visible hairline */
html[data-look="night"] .plan__opt { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
html[data-look="night"] .plan__opt:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .11); }
/* the chosen chip: lit violet, as the pressed side of the night design switch (night-base had turned it page-black);
   on the blue artwork a violet glass chip was too close to the others */
html[data-look="night"] .plan__opt.is-on {
  border-color: rgba(196, 181, 253, .55); background: linear-gradient(180deg, #7d50e8, #6339d0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 22px -8px rgba(143, 99, 246, .85);
}
html[data-look="night"] .plan__opt.is-on .plan__opt-main { color: #fff; }
html[data-look="night"] .plan__opt.is-on .plan__opt-sub { color: #ece6ff; }
html[data-look="night"] .plan__opt:has(input:focus-visible) { outline-color: var(--n-violet-text); }

/* the prospects slider: faint track, violet fill, light thumb with a violet edge */
html[data-look="night"] .plan__range {
  background: linear-gradient(to right, var(--n-violet-2) var(--fill), rgba(255, 255, 255, .12) var(--fill));
}
html[data-look="night"] .plan__range::-webkit-slider-thumb {
  background: var(--n-ink); border-color: var(--n-violet); box-shadow: 0 0 0 4px rgba(143, 99, 246, .2), 0 2px 10px rgba(0, 0, 0, .5);
}
html[data-look="night"] .plan__range::-moz-range-thumb {
  background: var(--n-ink); border-color: var(--n-violet); box-shadow: 0 0 0 4px rgba(143, 99, 246, .2), 0 2px 10px rgba(0, 0, 0, .5);
}
html[data-look="night"] .plan__range:focus-visible { outline-color: var(--n-violet-text); }
html[data-look="night"] .plan__ticks { color: var(--n-muted); }
html[data-look="night"] .plan__hint { color: var(--n-violet-text); }
/* the line above the Human Path's fine print (night-base had faded it away) */
html[data-look="night"] .plan__fine { border-top-color: rgba(255, 255, 255, .12); }

/* the live plan document: a lit night card with a hairline edge and the violet glow it has in the day look */
html[data-look="night"] .plan__doc {
  background: var(--n-surface); color: var(--n-ink);
  box-shadow: 0 0 0 1px var(--n-line-2), 0 40px 80px -24px rgba(0, 0, 0, .7), 0 0 60px -10px rgba(143, 99, 246, .4);
}
html[data-look="night"] .plan__kicker { color: var(--n-violet-text); }
html[data-look="night"] .plan__live { background: rgba(23, 178, 106, .16); color: #5ccc86; }
html[data-look="night"] .plan__live-dot { background: #5ccc86; }
html[data-look="night"] .plan__name { color: var(--n-violet-text); }
html[data-look="night"] .plan__doc-sub { color: var(--n-body); }

/* the four figures: cards inside the card, one step raised; the short flash when a figure changes is violet glass */
html[data-look="night"] .plan__stat { border-color: var(--n-line); background: var(--n-surface-2); }
html[data-look="night"] .plan__stat.is-bump { border-color: rgba(183, 164, 255, .45); background: rgba(143, 99, 246, .18); }
html[data-look="night"] .plan__stat dt { color: var(--n-muted); }
html[data-look="night"] .plan__h { color: var(--n-muted); }

/* the Forge stack: the product wordmarks get the smart invert (coloured mark kept, dark letters turned light);
   Frank's photo in the Agent Path row is left as it is */
html[data-look="night"] .plan__logo:not(.plan__logo--agent) img { filter: invert(1) hue-rotate(180deg); }
html[data-look="night"] .plan__detail { color: var(--n-muted); }
html[data-look="night"] .plan__price small { color: var(--n-muted); }
html[data-look="night"] .plan__price--free { color: #5ccc86; }

/* the total */
html[data-look="night"] .plan__total strong { color: var(--n-violet-text); }
html[data-look="night"] .plan__per,
html[data-look="night"] .plan__note { color: var(--n-muted); }

/* the first month: three small raised cards with a violet step number */
html[data-look="night"] .plan__step { border-color: var(--n-line); background: var(--n-surface-2); }
html[data-look="night"] .plan__step::before { background: rgba(143, 99, 246, .22); color: var(--n-violet-text); }
html[data-look="night"] .plan__when { color: var(--n-violet-text); }
html[data-look="night"] .plan__step-text { color: var(--n-body); }

/* "Email me this plan": the field sits recessed in the card; the thank-you is a success panel */
html[data-look="night"] .plan__email.field { background-color: var(--n-bg); }
html[data-look="night"] .plan__done {
  background: rgba(23, 178, 106, .14); color: #5ccc86; box-shadow: inset 0 0 0 1px rgba(92, 204, 134, .2);
}
html[data-look="night"] .plan__rules { color: var(--n-muted); }


/* ================================================================ round 3: the domain check (#domain-check) */

/* the ask (left) */
html[data-look="night"] .dc__pill { background: rgba(143, 99, 246, .16); color: var(--n-violet-text); }
html[data-look="night"] .dc__label { color: var(--n-body); }
html[data-look="night"] .dc__hint { color: var(--n-muted); }
html[data-look="night"] .dc__hint.is-error { color: #f97066; }
html[data-look="night"] .dc__try { color: var(--n-violet-text); text-decoration-color: rgba(183, 164, 255, .45); }
html[data-look="night"] .dc__try:hover { color: var(--n-ink); }
html[data-look="night"] .dc__fine { color: var(--n-muted); }

/* Frank's artwork panel is lit like the feature pictures; the report on it is a night card with a hairline edge */
html[data-look="night"] .dc__art { box-shadow: var(--n-glow); }
html[data-look="night"] .dc__card {
  background: var(--n-surface); color: var(--n-ink);
  box-shadow: 0 0 0 1px var(--n-line-2), 0 24px 60px -24px rgba(0, 0, 0, .7);
}
html[data-look="night"] .dc__kicker { color: var(--n-violet-text); }
/* "yourdomain.com" before a check is a dim placeholder, as in the day look (still 3:1 for its large size) */
html[data-look="night"] .dc__domain.is-empty { color: #66687a; }
html[data-look="night"] .dc__meta { color: var(--n-muted); }

/* the score ring: a faint track (night-base had made it a bright white ring), the arc in the status colours */
html[data-look="night"] .dc__ring-bg { stroke: rgba(255, 255, 255, .1); }
html[data-look="night"] .dc__ring { stroke: var(--n-violet-2); }
html[data-look="night"] .dc__score[data-tone="ok"] .dc__ring { stroke: #5ccc86; }
html[data-look="night"] .dc__score[data-tone="warn"] .dc__ring { stroke: #fdb022; }
html[data-look="night"] .dc__score[data-tone="bad"] .dc__ring { stroke: #f97066; }
html[data-look="night"] .dc__score-num { color: var(--n-ink); }

/* the verdict line in the night status colours, each on its own tint with a faint edge */
html[data-look="night"] .dc__verdict[data-tone="ok"] { background: rgba(23, 178, 106, .14); color: #5ccc86; box-shadow: inset 0 0 0 1px rgba(92, 204, 134, .18); }
html[data-look="night"] .dc__verdict[data-tone="warn"] { background: rgba(253, 176, 34, .1); color: #fdb022; box-shadow: inset 0 0 0 1px rgba(253, 176, 34, .18); }
html[data-look="night"] .dc__verdict[data-tone="bad"] { background: rgba(240, 68, 56, .14); color: #f97066; box-shadow: inset 0 0 0 1px rgba(249, 112, 102, .2); }
html[data-look="night"] .dc__verdict[data-tone="unknown"] { background: rgba(255, 255, 255, .05); color: var(--n-body); box-shadow: inset 0 0 0 1px var(--n-line); }

/* the four rows: hairlines, and a round status icon redrawn in the night status colours on its own tint */
html[data-look="night"] .dc__checks { border-top-color: var(--n-line); }
html[data-look="night"] .dc__check { border-bottom-color: var(--n-line); }
html[data-look="night"] .dc__icon { background-color: rgba(255, 255, 255, .06); }
html[data-look="night"] .dc__check[data-state="idle"] .dc__icon,
html[data-look="night"] .dc__check[data-state="skip"] .dc__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2.5' fill='%237C7E8F'/%3E%3C/svg%3E");
}
html[data-look="night"] .dc__check[data-state="run"] .dc__icon { border-color: rgba(143, 99, 246, .28); border-top-color: var(--n-violet-text); }
html[data-look="night"] .dc__check[data-state="ok"] .dc__icon {
  background-color: rgba(23, 178, 106, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13 4.8 6.4 11.4 3 8' stroke='%235CCC86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-look="night"] .dc__check[data-state="warn"] .dc__icon {
  background-color: rgba(253, 176, 34, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3.8v5' stroke='%23FDB022' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.8' r='1.2' fill='%23FDB022'/%3E%3C/svg%3E");
}
html[data-look="night"] .dc__check[data-state="bad"] .dc__icon {
  background-color: rgba(240, 68, 56, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.6 4.6 6.8 6.8m0-6.8-6.8 6.8' stroke='%23F97066' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-look="night"] .dc__check[data-state="unknown"] .dc__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 6.1a2 2 0 1 1 2.7 1.9c-.5.2-.7.6-.7 1v.4' stroke='%239597A6' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12' r='1.1' fill='%239597A6'/%3E%3C/svg%3E");
}

/* the row texts and their status pills (neutral, checking, found, weak, missing) */
html[data-look="night"] .dc__name { color: var(--n-ink); }
html[data-look="night"] .dc__name span { color: var(--n-muted); }
html[data-look="night"] .dc__status { background: rgba(255, 255, 255, .05); color: var(--n-muted); box-shadow: inset 0 0 0 1px var(--n-line); }
html[data-look="night"] .dc__check[data-state="run"] .dc__status { background: rgba(143, 99, 246, .16); color: var(--n-violet-text); box-shadow: none; }
html[data-look="night"] .dc__check[data-state="ok"] .dc__status { background: rgba(23, 178, 106, .16); color: #5ccc86; box-shadow: none; }
html[data-look="night"] .dc__check[data-state="warn"] .dc__status { background: rgba(253, 176, 34, .12); color: #fdb022; box-shadow: none; }
html[data-look="night"] .dc__check[data-state="bad"] .dc__status { background: rgba(240, 68, 56, .16); color: #f97066; box-shadow: none; }
html[data-look="night"] .dc__detail { color: var(--n-muted); }
html[data-look="night"] .dc__check[data-state="ok"] .dc__detail,
html[data-look="night"] .dc__check[data-state="warn"] .dc__detail,
html[data-look="night"] .dc__check[data-state="bad"] .dc__detail { color: var(--n-body); }

/* "Show record": the violet link and the record itself, a small raised code panel */
html[data-look="night"] .dc__more { color: var(--n-violet-text); }
html[data-look="night"] .dc__more:hover { color: #d4c9ff; }
html[data-look="night"] .dc__raw { border-color: var(--n-line); background: var(--n-surface-2); color: #d6d7e1; }
html[data-look="night"] .dc__note { color: var(--n-muted); }

/* after the check (left): the domain ideas, the free-provider advice and the bridge to the plan */
html[data-look="night"] .dc__h { color: var(--n-muted); }
html[data-look="night"] .dc__h span { color: var(--n-violet-text); }
html[data-look="night"] .dc__ideas-lead { color: var(--n-body); }
html[data-look="night"] .dc__idea { border-color: var(--n-line-2); background: var(--n-surface); box-shadow: none; }
html[data-look="night"] .dc__idea-name { color: var(--n-ink); }
html[data-look="night"] .dc__idea-state { color: #5ccc86; }
html[data-look="night"] .dc__idea-state::before { background: #5ccc86; }
/* a taken name: flat on the page, struck through, still readable */
html[data-look="night"] .dc__idea.is-taken { border-color: var(--n-line); background: rgba(255, 255, 255, .02); }
html[data-look="night"] .dc__idea.is-taken .dc__idea-name,
html[data-look="night"] .dc__idea.is-taken .dc__idea-state { color: var(--n-muted); }
html[data-look="night"] .dc__idea.is-taken .dc__idea-state::before { background: #4a4c5c; }
html[data-look="night"] .dc__ideas-note { color: var(--n-muted); }
html[data-look="night"] .dc__bridge { border-color: rgba(183, 164, 255, .22); background: rgba(143, 99, 246, .1); }
html[data-look="night"] .dc__bridge-title { color: var(--n-ink); }
html[data-look="night"] .dc__bridge-text { color: var(--n-body); }
html[data-look="night"] .dc__share { color: var(--n-violet-text); }
html[data-look="night"] .dc__share:hover { color: #d4c9ff; }

/* the link from "Never Land In Spam" down to the check */
html[data-look="night"] .dc-jump { color: var(--n-violet-text); }
html[data-look="night"] .dc-jump:hover { color: #d4c9ff; }

/* the domain check's lead paragraph reads as a paragraph, one step below its heading, like every other homepage lead */
html[data-look="night"] .dc__copy .dark { color: var(--n-body); }
