/* The headline and DM example share one left edge. The landscape photo leaves the
   right side for the creator, and the portrait crop leaves space above her for the copy. */

.nb-hero {
    --hero-edge: calc(var(--gutter) + 10px);
    position: relative; isolation: isolate;
    display: grid;
    grid-template: "copy" auto "chat" 1fr / minmax(0, 1fr);
    min-height: max(100svh, 660px);
    background: #302823;
    color: #fff;
    overflow: clip;
}

/* ── Copy ── */
.nb-hero__copy {
    grid-area: copy;
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: calc(var(--nb-header-h) + clamp(24px, 4svh, 52px)) var(--hero-edge) 8px;
    container-type: inline-size;
}
/* Fit the two written lines to the column: the size never forces a third line. */
.nb-hero__title { font-size: min(clamp(44px, 4.4vw + 25px, 104px), 17cqi); }
:lang(en) .nb-hero__title { font-size: min(clamp(44px, 4.4vw + 25px, 104px), 16cqi); }
.nb-hero__sub {
    margin-top: 18px; max-width: 25em;
    font-size: clamp(16px, .3vw + 15px, 20px); line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    text-wrap: balance;
}
.nb-hero__actions { display: flex; margin-top: 22px; }

/* The wall leaves room for the headline above the creator on narrow screens. */
.nb-hero__stage { position: absolute; inset: 0; z-index: 0; }
.nb-hero__stage picture { display: contents; }
.nb-hero__photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 78%;
}
.nb-hero__stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(17, 17, 19, .68) 0%, rgba(17, 17, 19, .42) 36%, transparent 56%),
        linear-gradient(0deg, rgba(17, 17, 19, .5) 0%, transparent 30%);
}
@media (orientation: landscape) {
    .nb-hero__photo { object-position: 86% 40%; }
    .nb-hero__stage::after {
        background:
            linear-gradient(90deg, rgba(17, 17, 19, .74) 0%, rgba(17, 17, 19, .5) 28%, transparent 52%),
            linear-gradient(180deg, rgba(17, 17, 19, .67), rgba(17, 17, 19, .58) 54px, transparent 130px);
    }
}

/* A bright part of the photo behind the copy (HeroVariant scrim 'strong'): the wash reaches further. */
.nb-hero[data-scrim="strong"] .nb-hero__stage::after {
    background:
        linear-gradient(180deg, rgba(17, 17, 19, .74) 0%, rgba(17, 17, 19, .62) 34%, rgba(17, 17, 19, .3) 48%, transparent 60%),
        linear-gradient(0deg, rgba(17, 17, 19, .5) 0%, transparent 30%);
}
@media (orientation: landscape) {
    .nb-hero[data-scrim="strong"] .nb-hero__stage::after {
        background:
            linear-gradient(90deg, rgba(17, 17, 19, .78) 0%, rgba(17, 17, 19, .64) 30%, rgba(17, 17, 19, .46) 46%, transparent 66%),
            linear-gradient(180deg, rgba(17, 17, 19, .67), rgba(17, 17, 19, .58) 54px, transparent 130px);
    }
}

/* A bright photo behind the headline (HeroVariant tone 'light'): ink copy over a light wash, the lime
   button gets the ink edge (lime on a light wash is under 1.5:1), and landing.js keeps the nav ink. */
.nb-hero[data-tone="light"] { color: var(--nb-ink); background: #f4efe6; }
.nb-hero[data-tone="light"] .nb-hero__sub { color: rgba(17, 17, 19, .82); }
.nb-hero[data-tone="light"] .nb-hero__actions .nb-b--accent { box-shadow: inset 0 0 0 1.5px var(--nb-ink); }
.nb-hero[data-tone="light"] .nb-hero__stage::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .38) 36%, transparent 56%);
}
@media (orientation: landscape) {
    .nb-hero[data-tone="light"] .nb-hero__stage::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .42) 28%, transparent 52%);
    }
}

/* ── Chat thread (the only motion) ── */
.nb-hero__chat {
    grid-area: chat;
    position: relative; z-index: 2;
    align-self: end;
    display: grid;
    width: min(100%, calc(330px + var(--hero-edge) * 2));
    padding: 16px var(--hero-edge) calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 14px; line-height: 1.35; color: var(--nb-ink);
    -webkit-font-smoothing: antialiased;
}
.nb-hero__scene {
    grid-area: 1 / 1;
    display: grid; align-content: start; justify-items: start; gap: 8px;
    min-width: 0; visibility: hidden;
}
.nb-hero__scene[data-current] { visibility: visible; }
.nb-hc {
    background: #fff;
    box-shadow: 0 2px 4px rgba(17, 17, 19, .12), 0 12px 26px rgba(17, 17, 19, .2);
    transition: opacity var(--nb-dur-4) var(--nb-ease), transform var(--nb-dur-4) var(--nb-ease);
}
.nb-hc__av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--nb-mist); }
.nb-hc__av--sm { width: 22px; height: 22px; }

/* the fan's comment */
.nb-hc--in {
    display: flex; align-items: center; gap: 8px;
    max-width: 100%; min-height: 52px;
    padding: 8px 10px 8px 8px; border-radius: 17px;
}
.nb-hc__text { display: grid; min-width: 0; }
.nb-hc__status { display: grid; justify-items: end; align-items: center; padding-left: 2px; }
.nb-hc__status > * { grid-area: 1 / 1; }
.nb-hc__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1px 5px;
    font-size: 11px; color: var(--nb-ink-3);
}
.nb-hc__meta b { font-weight: 700; color: var(--nb-ink); }
.nb-hc__meta span { white-space: nowrap; }
.nb-hc__meta :is(.nb-hc__service-icon, .nb-tt-glyph) { width: 12px; height: 12px; flex: none; color: var(--nb-ink); }
.nb-hc__said { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nb-hc__said em { font-style: normal; padding: 0 .2em; border-radius: 4px; background: var(--nb-accent); color: var(--nb-on-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nb-hc__sent {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; color: var(--nb-ink-3); white-space: nowrap;
    transition: opacity var(--nb-dur-3) var(--nb-ease), transform var(--nb-dur-3) var(--nb-ease);
}
.nb-hc__sent .nb-i { width: 13px; height: 13px; stroke-width: 3; }
.nb-hc__dot {
    width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: var(--nb-accent); box-shadow: inset 0 0 0 1.5px var(--nb-ink); flex: none;
    transform: scale(0); opacity: 0; /* end state: the comment is answered */
    transition: opacity var(--nb-dur-2) ease, transform var(--nb-dur-3) var(--nb-ease);
}

/* the auto DM */
.nb-hc--dm {
    width: min(282px, calc(100% - 14px)); margin-left: 14px;
    padding: 10px; border-radius: 17px;
}
.nb-hc__from { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nb-ink-3); }
.nb-hc__from b { font-weight: 700; color: var(--nb-ink); }
.nb-hc__msg {
    margin: 5px 0 0; font-size: 13px;
}
.nb-hc__item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 8px;
    margin-top: 6px; padding: 4px 5px 4px 4px; background: var(--nb-mist); border-radius: 11px;
}
.nb-hc__item img { width: 42px; height: 42px; border-radius: 8px; background: var(--nb-mist); object-fit: contain; mix-blend-mode: multiply; }
.nb-hc__name { display: grid; font-size: 13px; color: var(--nb-ink-2); }
.nb-hc__name b { font-family: var(--nb-display); font-size: 15.5px; font-weight: 760; letter-spacing: -0.015em; color: var(--nb-ink); font-variant-numeric: tabular-nums; }
.nb-hc__btn {
    display: grid; place-items: center; height: 29px; padding: 0 10px; border-radius: 999px;
    background: var(--nb-ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
}

.nb-hc--dm[data-channel="tiktok"] { background: var(--nb-ink); color: #fff; }
.nb-hc--dm[data-channel="tiktok"] .nb-hc__from { color: rgba(255, 255, 255, .72); }
.nb-hc--dm[data-channel="tiktok"] .nb-hc__from b { color: #fff; }
.nb-hc__link {
    display: flex; align-items: center; gap: 7px;
    min-height: 40px; margin-top: 6px; padding: 8px 10px;
    border-radius: 11px; background: rgba(255, 255, 255, .12);
    color: #fff; font-size: 13px; overflow-wrap: anywhere;
}
.nb-hc__link .nb-i { width: 14px; height: 14px; flex: none; }

/* Without autoplay the selected conversation shows its full result. */
.nb-hero__chat[data-playing] .nb-hc { opacity: 0; transform: translateY(12px); }
.nb-hero__chat[data-playing].s-in .nb-hc--in,
.nb-hero__chat[data-playing].s-dm .nb-hc--dm { opacity: 1; transform: none; }
.nb-hero__chat[data-playing]:not(.s-sent) .nb-hc__sent { opacity: 0; transform: translateX(-4px); }
.nb-hero__chat[data-playing].s-dot:not(.s-sent) .nb-hc__dot { opacity: 1; transform: none; }
.nb-hero__chat[data-playing].is-out .nb-hc { opacity: 0; transform: translateY(-6px); transition-duration: var(--nb-dur-3); }

@media (max-width: 639.98px) and (max-height: 740px) and (orientation: portrait) {
    .nb-hero__sub { margin-top: 12px; font-size: 15px; line-height: 1.45; }
    .nb-hero__actions { margin-top: 16px; }
    .nb-hero__actions .nb-b { min-height: 50px; }
    .nb-hero__chat { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .nb-hero__scene { gap: 6px; }
    .nb-hc__item img { width: 38px; height: 38px; }
}

@media (min-width: 640px) {
    .nb-hero { --hero-edge: calc(var(--gutter) + 14px); }
}

@media (min-width: 760px) and (orientation: landscape) {
    .nb-hero {
        grid-template: "copy ." auto "chat ." 1fr / minmax(0, 48fr) minmax(0, 52fr);
        min-height: max(100svh, 600px);
    }
    .nb-hero__copy { padding: calc(var(--nb-header-h) + clamp(40px, 7svh, 104px)) 0 12px var(--hero-edge); }
    .nb-hero__sub { margin-top: 24px; }
    .nb-hero__actions { margin-top: 30px; }
    .nb-hero__chat {
        padding-bottom: clamp(32px, 12svh, 126px);
    }
}

@media (min-width: 760px) and (orientation: landscape) and (max-aspect-ratio: 3/2) {
    .nb-hero__title { font-size: min(clamp(44px, 4.4vw + 25px, 104px), 15cqi); }
    :lang(en) .nb-hero__title { font-size: min(clamp(44px, 4.4vw + 25px, 104px), 14cqi); }
}

@media (min-width: 1024px) {
    .nb-hero { --hero-edge: var(--edge); }
    .nb-hc--dm { width: 308px; margin-left: 20px; }
}

@media (min-width: 1600px) and (min-height: 860px) {
    .nb-hc--dm { width: 326px; }
    .nb-hc__item img { width: 48px; height: 48px; }
}

/* ── Nav ──
 * Quiet language switch (text, not a pill) and an ink CTA (ManyChat's nav button is black too: lime stays for
 * the hero button and the section CTAs, and would melt into the frosted bar over the lime field); over the ink
 * hero it is outlined so the hero's lime
 * button is the one loud thing on screen. landing.js sets data-tone="dark" while the hero is under the bar
 * (from 1024px only while the pill is still transparent at the top: the frosted pill is always light). */
.nb-lang--nav { padding: 0; gap: 0; background: transparent; }
.nb-lang--nav a { min-width: 34px; height: 44px; padding: 0 6px; font-size: 13px; color: var(--nb-ink-3); }
.nb-lang--nav a[aria-current] { background: transparent; box-shadow: none; color: var(--nb-ink); }
.nb-lang--nav a + a { position: relative; }
.nb-lang--nav a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: currentColor; opacity: .3; }

.nb-nav[data-tone="dark"]:not([data-open]) { color: #fff; }
.nb-nav[data-tone="dark"]:not([data-open])::before {
    background: rgba(17, 17, 19, .72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__links > a,
.nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__login { color: rgba(255, 255, 255, .8); }
.nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__links > a[aria-current="page"] {
    background: rgba(255, 255, 255, .16); color: #fff;
}
.nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__menu span { background: #fff; }
.nb-nav[data-tone="dark"]:not([data-open]) .nb-lang a { color: rgba(255, 255, 255, .55); }
.nb-nav[data-tone="dark"]:not([data-open]) .nb-lang a[aria-current] { color: #fff; }
.nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__actions .nb-b--ink {
    background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
}
@media (hover: hover) {
    .nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__links > a:hover,
    .nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__login:hover { color: #fff; background: rgba(255, 255, 255, .1); }
    .nb-nav[data-tone="dark"]:not([data-open]) .nb-lang a:not([aria-current]):hover { color: #fff; }
    .nb-nav[data-tone="dark"]:not([data-open]) .nb-nav__actions .nb-b--ink:hover { background: var(--nb-accent); color: var(--nb-on-accent); box-shadow: none; }
}
/* Tone changes. Below 1024px the bar's background swaps where the hero ends, so the type swaps in the same frame
   (a type fade under an instant background swap drew white on white for a few frames). From 1024px the type
   changes with the pill's fade (landing.css), on the same duration and curve. */
@media (max-width: 1023.98px) {
    .nb-nav, .nb-nav :is(.nb-nav__brand, .nb-nav__login, .nb-lang a) { transition: none; }
    .nb-nav__actions .nb-b { transition: transform var(--nb-dur-1) var(--nb-ease); }
}
@media (min-width: 1024px) {
    .nb-nav, .nb-nav__links > a, .nb-nav__login, .nb-nav .nb-lang a, .nb-nav__actions .nb-b {
        transition: color var(--nb-dur-2) var(--nb-ease), background-color var(--nb-dur-2) var(--nb-ease), box-shadow var(--nb-dur-2) var(--nb-ease);
    }
}

.nb-nav .nb-nav__brand { color: var(--nb-ink); }

/* Home switches the wordmark and backing together so both states remain legible. */
.nb-nav--home .nb-nav__brand { color: #111113; }
.nb-nav--home[data-tone="dark"]:not([data-open]) .nb-nav__brand { color: #fff; }
.nb-nav--home :is(.nb-nav__links > a, .nb-nav__login, .nb-lang a, .nb-nav__actions .nb-b) {
    transition-property: background-color, box-shadow;
}
.nb-nav--home:not([data-tone="dark"]) .nb-nav__actions .nb-b--ink,
.nb-nav--home[data-open] .nb-nav__actions .nb-b--ink {
    background: transparent;
    color: var(--nb-ink);
    box-shadow: inset 0 0 0 1px var(--nb-line);
}
@media (hover: hover) {
    .nb-nav--home:not([data-tone="dark"]) .nb-nav__actions .nb-b--ink:hover,
    .nb-nav--home[data-open] .nb-nav__actions .nb-b--ink:hover { background: var(--nb-ink); color: #fff; box-shadow: none; }
}
.nb-nav--home .nb-nav__bar::before { transition: none; }
.nb-nav--home.is-stuck .nb-nav__bar::before { background: rgba(255, 255, 255, .94); }

@media (max-width: 1023.98px) {
    .nb-nav--home { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); }
    .nb-nav--home:not([data-open])::before { opacity: 0; }
    .nb-nav--home .nb-nav__bar {
        height: calc(var(--nav-h) - 8px);
        margin-inline: var(--gutter);
        padding: 0 4px 0 12px;
    }
    .nb-nav--home.is-stuck:not([data-open]) .nb-nav__bar::before {
        content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
        box-shadow: 0 0 0 1px rgba(17, 17, 19, .06), 0 6px 16px -12px rgba(17, 17, 19, .32);
    }
    .nb-nav--home .nb-nav__menu { width: 44px; margin: 0; }
}

@media (max-width: 639.98px) {
    .nb-nav--home .nb-nav__bar { gap: 4px; }
    .nb-nav--home .nb-nav__actions { gap: 2px; }
    .nb-nav--home .nb-nav__actions .nb-b { padding-inline: 12px; }
    .nb-nav--home .nb-lang--nav a { min-width: 29px; padding-inline: 4px; }
    .nb-nav--home .nb-nav__bar .nb-wordmark { display: inline-block; width: clamp(96px, 28vw, 116px); }
    .nb-nav--home .nb-nav__bar .nb-wordmark + .nb-logo { display: none; }
}
