/* Discover hero, 2026-09-18. Owns layout and search controls.
   Scoped to the page to isolate native form styles; no !important needed. */
body.pxd-discover-page .pxd-disc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100% - 2 * var(--pxd-disc-gutter), var(--pxd-disc-content));
    margin: 20px auto;
    padding: 32px clamp(24px, 3vw, 44px);
    border: 1px solid #dbe8df;
    border-radius: 24px;
    background: radial-gradient(ellipse at 100% 100%, #e0efdf 0, transparent 54%), #f9fbf7;
    box-shadow: 0 4px 20px rgb(20 56 45 / 3%);
}
body.pxd-discover-page .pxd-disc-hero-in {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0;
    padding: 0 160px 0 0;
}
body.pxd-discover-page .pxd-disc-hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    color: #377451;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}
.pxd-disc-hero-eyebrow .ic { width: 16px; height: 16px; }
.pxd-disc-hero-eyebrow span {
    padding: 2px 6px;
    border: 1px solid #cbded0;
    border-radius: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}
body.pxd-discover-page .pxd-disc-hero h1 {
    margin: 0;
    color: #123e35;
    font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
body.pxd-discover-page .pxd-disc-hero-sub {
    max-width: 600px;
    margin: 10px 0 0;
    color: #52675e;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
}
body.pxd-discover-page .pxd-disc-pixi-hero {
    position: absolute;
    z-index: 1;
    width: clamp(155px, 17vw, 218px);
    right: clamp(24px, 4vw, 64px);
    top: 34px;
    bottom: auto;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgb(23 65 42 / 12%));
}
body.pxd-discover-page .pxd-disc-pixi-hero img {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(-1);
}
body.pxd-discover-page .pxd-disc-nlsearch { margin: 22px 0 0; }
body.pxd-discover-page .pxd-disc-nl-field {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 7px 7px 7px 17px;
    border: 1px solid #bdcfc3;
    border-radius: var(--pxd-radius-full);
    background: var(--pxd-glass-popup);
    box-shadow: var(--pxd-shadow-sm);
    backdrop-filter: var(--pxd-blur-card);
    position: relative;
    isolation: isolate;
    transition: border-color 160ms, box-shadow 160ms;
}
body.pxd-discover-page .pxd-disc-nl-field:focus-within {
    border-color: #377451;
    box-shadow: 0 0 0 3px rgb(55 116 81 / 13%);
}
body.pxd-discover-page .pxd-disc-nl-spark { flex: none; width: 20px; height: 20px; color: #377451; }
body.pxd-discover-page .pxd-disc-nl-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #123e35;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}
body.pxd-discover-page .pxd-disc-nl-input::placeholder { color: #67796f; opacity: 1; }
/* The whole field carries its focus ring, including keyboard input. */
body.pxd-discover-page .pxd-disc-nl-input:focus-visible { outline: none; }
body.pxd-discover-page .pxd-disc-nl-send {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin: 0;
    padding: 0 21px;
    border: 0;
    border-radius: var(--pxd-radius-full);
    background: var(--pxd-gradient);
    box-shadow: var(--pxd-shadow-sm);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--pxd-dur-fast), transform var(--pxd-dur-fast) var(--pxd-ease-bounce), box-shadow var(--pxd-dur-fast);
}
.pxd-disc-nl-send .ic { width: 17px; height: 17px; }
body.pxd-discover-page .pxd-disc-nl-send:not(:disabled):hover {
    background: linear-gradient(135deg, var(--pxd-primary-dark), var(--pxd-secondary-hover));
    transform: translateY(-1px);
    box-shadow: var(--pxd-shadow-hover);
}
body.pxd-discover-page .pxd-disc-nl-send:not(:disabled):active { transform: scale(0.97); }
body.pxd-discover-page .pxd-disc-nl-send:focus-visible {
    outline: 2px solid var(--pxd-secondary);
    outline-offset: 3px;
}
body.pxd-discover-page .pxd-disc-nl-field::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--pxd-gradient-reflet);
    opacity: 0.5;
    pointer-events: none;
}
body.pxd-discover-page .pxd-disc-nl-field:hover::before { opacity: 0.9; }
/* The hero owns the expressive mascot; avoid duplicating it inside its dialogue. */
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-bubble > img,
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo .pxd-disc-err > img { display: none; }
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-chips,
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-free,
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-foot { padding-left: 0; }
body.pxd-discover-page .pxd-disc-nl-send:disabled { opacity: 0.6; cursor: wait; }
body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo {
    max-width: none;
    background: #fff;
    border: 1px solid #dbe8df;
    box-shadow: none;
    backdrop-filter: none;
}
@media (min-width: 1300px) {
    body.pxd-discover-page .pxd-disc-hero-in { max-width: 980px; padding-right: 120px; }
}
@media (max-width: 760px) {
    body.pxd-discover-page .pxd-disc-hero { padding: 24px; border-radius: 20px; }
    body.pxd-discover-page .pxd-disc-hero-in { padding: 0; max-width: none; }
    body.pxd-discover-page .pxd-disc-hero-eyebrow { padding-right: 64px; font-size: 0.72rem; }
    body.pxd-discover-page .pxd-disc-hero h1 { padding-right: 64px; }
    body.pxd-discover-page .pxd-disc-pixi-hero { top: 18px; right: 12px; bottom: auto; width: 76px; }
    body.pxd-discover-page .pxd-disc-hero-sub { font-size: 0.92rem; }
    body.pxd-discover-page .pxd-disc-nlsearch { margin-top: 18px; }
}
@media (max-width: 480px) {
    body.pxd-discover-page .pxd-disc-hero { padding: 20px 16px; }
    body.pxd-discover-page .pxd-disc-nl-field { flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: var(--pxd-radius-lg); }
    body.pxd-discover-page .pxd-disc-nl-input { height: 40px; }
    body.pxd-discover-page .pxd-disc-nl-send { flex: 1 0 100%; }
    body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo { padding: 12px; }
    body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-chips,
    body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-free,
    body.pxd-discover-page .pxd-disc-hero .pxd-disc-convo-foot { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.pxd-discover-page .pxd-disc-hero *,
    body.pxd-discover-page .pxd-disc-hero *::before,
    body.pxd-discover-page .pxd-disc-hero *::after { animation: none; transition: none; }
}
