/* ============================================================================
   css/feasibility.css — Area Feasibility Study overlay (dormant until opened).
   Styles ONLY #np-feasibility, which JS builds lazily on first open(); nothing
   here affects the homepage until the flow is launched. Clones the navy-glass
   recipes from modal.css / navy-glass.css / products.css so it matches the
   live dark site (not a light mockup).
   ============================================================================ */

/* ---- overlay shell (mirrors .modal-overlay/.modal-container + .open) ---- */
#np-feasibility {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(4, 8, 20, .80);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .28s ease;
  font-family: 'Lora', Georgia, serif;
  color: #C7D3E6;
  -webkit-text-size-adjust: 100%;
}
#np-feasibility.open { opacity: 1; pointer-events: auto; }
body.np-feas-open { overflow: hidden; }

#np-feasibility .npf-panel {
  width: 100%;
  max-width: 780px;
  margin: auto;
  background: rgba(10, 18, 40, .93);
  background-image: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 45%, rgba(230,193,90,.06));
  border: 1px solid rgba(255,255,255,.14);
  border-top: 2px solid rgba(230,193,90,.42);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(4, 8, 20, .55);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(.985);
  transition: transform .3s ease;
  position: relative;
}
#np-feasibility.open .npf-panel { transform: none; }

/* ---- header / progress / close ---- */
#np-feasibility .npf-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 22px 14px;
  background: rgba(10, 18, 40, .96);
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-radius: 16px 16px 0 0;
}
#np-feasibility .npf-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(230,193,90,.85);
  margin: 0 0 4px;
}
#np-feasibility .npf-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #FFFFFF; font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.2; margin: 0;
}
#np-feasibility .npf-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  transition: background .15s ease, transform .15s ease;
}
#np-feasibility .npf-close:hover { background: rgba(255,255,255,.16); }
#np-feasibility .npf-dots { display: flex; gap: 8px; margin-top: 12px; }
#np-feasibility .npf-dot {
  height: 6px; flex: 1; border-radius: 99px;
  background: rgba(255,255,255,.12);
  transition: background .2s ease;
}
#np-feasibility .npf-dot.active { background: #E6C15A; }
#np-feasibility .npf-dot.done   { background: rgba(230,193,90,.55); }

/* ---- body / steps ---- */
#np-feasibility .npf-body { padding: 20px 22px 26px; }
#np-feasibility .npf-step { display: none; }
#np-feasibility .npf-step.active { display: block; }
#np-feasibility .npf-steptitle {
  font-family: 'Playfair Display', Georgia, serif;
  color: #FFFFFF; font-weight: 700; font-size: 1.25rem;
  margin: 0 0 4px;
}
#np-feasibility .npf-stepsub {
  font-size: .95rem; color: rgba(199,211,230,.75);
  margin: 0 0 18px;
}
#np-feasibility .npf-group { margin: 0 0 22px; }
#np-feasibility .npf-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: .9rem; color: #E7EDF6;
  margin: 0 0 9px;
}
#np-feasibility .npf-hint {
  font-size: .82rem; color: rgba(199,211,230,.6);
  margin: -4px 0 9px;
}

/* ---- inputs / selects (mirror navy-glass form overrides) ---- */
#np-feasibility select,
#np-feasibility input[type="text"] {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(8,14,28,.60);
  border: 1px solid rgba(255,255,255,.22);
  color: #FFFFFF;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#np-feasibility select:focus,
#np-feasibility input[type="text"]:focus {
  outline: none;
  border-color: #E6C15A;
  box-shadow: 0 0 0 3px rgba(230,193,90,.22);
}
#np-feasibility select:disabled { opacity: .5; }
#np-feasibility input::placeholder { color: rgba(199,211,230,.5); }
#np-feasibility select option { background: #101E3C; color: #FFFFFF; }
#np-feasibility .npf-field { margin: 0 0 14px; }

/* ---- chips (mirror .filter-tab + .active) ---- */
#np-feasibility .npf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#np-feasibility .npf-chip {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .86rem; font-weight: 500;
  color: rgba(250,247,242,.7);
  padding: 8px 13px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor: pointer; user-select: none;
  transition: all .15s ease;
}
#np-feasibility .npf-chip:hover {
  color: rgba(230,193,90,.92);
  background: rgba(200,150,62,.12);
  border-color: rgba(200,150,62,.28);
}
#np-feasibility .npf-chip.active {
  color: #E6C15A; border-color: #E6C15A;
  background: rgba(200,150,62,.16); font-weight: 600;
}

/* radios (area profile) rendered as chips too */
#np-feasibility .npf-radio.active { color: #E6C15A; border-color: #E6C15A; background: rgba(200,150,62,.16); font-weight: 600; }

/* activity rows */
#np-feasibility .npf-act {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; flex-wrap: wrap;
}
#np-feasibility .npf-act .npf-chip { flex: 0 0 auto; }
#np-feasibility .npf-act select { width: auto; min-width: 150px; flex: 0 0 auto; padding: 7px 10px; }
#np-feasibility .npf-act select[hidden] { display: none; }

/* ---- nav buttons ---- */
#np-feasibility .npf-nav {
  display: flex; gap: 10px; align-items: center;
  margin-top: 8px;
}
#np-feasibility .npf-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 10px;
  cursor: pointer; border: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
#np-feasibility .npf-btn-primary {
  color: #0F0E0D;
  background: linear-gradient(135deg, #C8963E, #A87230);
  box-shadow: 0 4px 16px rgba(200,150,62,.30);
  margin-left: auto;
}
#np-feasibility .npf-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200,150,62,.42); }
#np-feasibility .npf-btn-ghost {
  color: rgba(199,211,230,.8);
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
}
#np-feasibility .npf-btn-ghost:hover { color: #FFFFFF; border-color: rgba(255,255,255,.3); }

/* ---- results ---- */
#np-feasibility .npf-results-head { margin: 0 0 14px; }
#np-feasibility .npf-results-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #FFFFFF; font-weight: 700; font-size: clamp(1.3rem,4vw,1.6rem);
  margin: 0 0 10px;
}
#np-feasibility .npf-disclaimer,
#np-feasibility .npf-note,
#np-feasibility .npf-verify {
  font-size: .86rem; line-height: 1.55;
  border-radius: 10px; padding: 13px 15px; margin: 0 0 16px;
}
#np-feasibility .npf-disclaimer {
  background: rgba(8,14,28,.55);
  border: 1px solid rgba(230,193,90,.28);
  color: rgba(199,211,230,.9);
}
#np-feasibility .npf-note {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(199,211,230,.82);
}
#np-feasibility .npf-verify {
  background: rgba(8,14,28,.5);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(199,211,230,.88);
}
#np-feasibility .npf-verify ol,
#np-feasibility .npf-explainer ol { margin: 8px 0 0; padding-left: 20px; }
#np-feasibility .npf-verify li,
#np-feasibility .npf-explainer li { margin: 5px 0; }
#np-feasibility details.npf-explainer {
  margin: 0 0 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px 15px; font-size: .86rem;
}
#np-feasibility details.npf-explainer summary {
  cursor: pointer; color: #E6C15A; font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
#np-feasibility .npf-secttitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #FFFFFF; font-weight: 700; font-size: 1.05rem;
  margin: 22px 0 4px;
}
#np-feasibility .npf-sectsub { font-size: .85rem; color: rgba(199,211,230,.68); margin: 0 0 12px; }

/* result cards (mirror .product-card glass recipe) */
#np-feasibility .npf-card {
  background-color: rgba(16,26,52,.88);
  background-image: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 50%, rgba(230,193,90,.06));
  border: 1px solid rgba(224,180,90,.30);
  border-radius: 14px;
  padding: 16px 17px;
  margin: 0 0 13px;
  box-shadow: 0 8px 22px rgba(6,13,26,.42), inset 0 1px 0 rgba(255,255,255,.10);
}
#np-feasibility .npf-card.npf-idea {
  border: 1px solid #E6C15A;
  border-top: 2px solid #E6C15A;
  box-shadow: 0 10px 30px rgba(200,150,62,.22), inset 0 1px 0 rgba(255,255,255,.12);
}
#np-feasibility .npf-card-rank {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(230,193,90,.85); text-transform: uppercase;
}
#np-feasibility .npf-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #FFFFFF; font-weight: 700; font-size: 1.18rem;
  margin: 2px 0 8px;
}
#np-feasibility .npf-card p { margin: 6px 0; font-size: .9rem; line-height: 1.5; }
#np-feasibility .npf-reason { color: #D6E0EF; }
#np-feasibility .npf-line-warn { color: #F0C36B; }
#np-feasibility .npf-line-gap  { color: rgba(199,211,230,.82); }
#np-feasibility .npf-line-hobby { color: #E6C15A; }
#np-feasibility .npf-line-mobile { color: #9BD6B0; }
#np-feasibility .npf-line-reach { color: rgba(199,211,230,.78); font-style: italic; }
#np-feasibility .npf-check { list-style: none; padding: 0; margin: 8px 0; }
#np-feasibility .npf-check li { font-size: .88rem; margin: 3px 0; }
#np-feasibility .npf-check .ok { color: #7FC79A; }
#np-feasibility .npf-check .no { color: rgba(199,211,230,.55); }
#np-feasibility .npf-verdict { font-weight: 700; font-size: 1rem; margin: 0 0 8px; }
#np-feasibility .npf-verdict.strong { color: #7FC79A; }
#np-feasibility .npf-verdict.partial { color: #F0C36B; }
#np-feasibility .npf-verdict.weak { color: #E88C8C; }
#np-feasibility .npf-cardlink {
  display: inline-block; margin-top: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .9rem;
  color: #E6C15A; text-decoration: none;
}
#np-feasibility .npf-cardlink:hover { text-decoration: underline; }
#np-feasibility .npf-maplink { color: #7BB8F0; font-size: .86rem; text-decoration: none; }
#np-feasibility .npf-maplink:hover { text-decoration: underline; }
#np-feasibility .npf-more {
  display: block; width: 100%; text-align: center;
  margin: 4px 0 16px; padding: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: .9rem;
  color: #E6C15A; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; cursor: pointer;
}
#np-feasibility .npf-hidden { display: none; }

/* ---- responsive ---- */
@media (max-width: 768px) {
  #np-feasibility { padding: 12px 8px; }
  #np-feasibility .npf-body { padding: 16px 15px 22px; }
  #np-feasibility .npf-head { padding: 14px 16px 12px; }
}
@media (max-width: 640px) {
  #np-feasibility .npf-panel { max-height: 94vh; border-radius: 14px; }
  #np-feasibility .npf-act select { min-width: 130px; }
  #np-feasibility .npf-btn { padding: 11px 16px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  #np-feasibility,
  #np-feasibility .npf-panel,
  #np-feasibility .npf-btn { transition: none; }
  #np-feasibility.open .npf-panel { transform: none; }
}

/* ============================================================================
   ENTRY POINTS (homepage) — feature card + slim catalog banner.
   These are top-level classes (not scoped under #np-feasibility) so they show
   on the homepage. Clone the navy-glass product-card recipe + gold-gradient CTA.
   ============================================================================ */
.npf-feature { padding: 6px 0 2px; }
.npf-feature-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background-color: rgba(16,26,52,.88);
  background-image: linear-gradient(165deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 50%, rgba(230,193,90,.06));
  border: 1px solid rgba(224,180,90,.45);
  border-top: 2px solid rgba(224,180,90,.62);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 8px 22px rgba(6,13,26,.42), inset 0 1px 0 rgba(255,255,255,.12);
}
.npf-feature-icon { font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.npf-feature-title {
  font-family: 'Playfair Display', Georgia, serif; color: #FFFFFF; font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; margin: 0 0 10px;
}
.npf-feature-body {
  font-family: 'Lora', Georgia, serif; color: #C7D3E6; font-size: 1rem; line-height: 1.6;
  margin: 0 auto 18px; max-width: 520px;
}
.npf-feature-cta {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  color: #0F0E0D; border: 0; border-radius: 10px; padding: 13px 28px; cursor: pointer;
  background: linear-gradient(135deg, #C8963E, #A87230);
  box-shadow: 0 4px 16px rgba(200,150,62,.30);
  transition: transform .12s ease, box-shadow .12s ease;
}
.npf-feature-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200,150,62,.42); }
.npf-feature-trust {
  font-family: 'Plus Jakarta Sans', sans-serif; color: rgba(199,211,230,.6);
  font-size: .82rem; margin: 12px 0 0;
}

.npf-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0 18px; padding: 12px 18px; border-radius: 12px;
  border: 1.5px dashed rgba(230,193,90,.55);
  background: rgba(200,150,62,.07);
  cursor: pointer; text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.npf-banner:hover, .npf-banner:focus-visible {
  background: rgba(200,150,62,.14); border-color: #E6C15A; outline: none;
}
.npf-banner-text {
  font-family: 'Plus Jakarta Sans', sans-serif; color: #E7EDF6; font-size: .92rem; font-weight: 500;
}
.npf-banner-arrow { color: #E6C15A; font-weight: 700; font-size: 1.15rem; flex: 0 0 auto; }
@media (max-width: 640px) {
  .npf-feature-card { padding: 22px 18px; }
  .npf-banner-text { font-size: .84rem; }
  .npf-banner { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .npf-feature-cta { transition: none; }
}

/* ============================================================================
   i18n — EN|TL language pill (rendered by js/i18n.js into [data-i18n-switch]).
   Gold-outline segments; active segment = gold fill. Works in the dark nav and
   in the overlay header.
   ============================================================================ */
.np-lang-pill {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(230,193,90,.55);
  border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.04);
}
.np-lang-pill button {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 11px; border: 0; cursor: pointer;
  background: transparent; color: rgba(230,193,90,.9);
  line-height: 1; transition: background .15s ease, color .15s ease;
}
.np-lang-pill button + button { border-left: 1px solid rgba(230,193,90,.35); }
.np-lang-pill button:hover { background: rgba(200,150,62,.15); }
.np-lang-pill button.active { background: #C8963E; color: #0A1428; }
/* On mobile (≤767px) the header nav pill is replaced by the floating hero pill
   (.lang-float) below + the hamburger menu "Language / Wika" row, so hide the
   nav-actions pill there (also avoids the narrow-phone header overflow). */
@media (max-width: 767px) { .nav-lang { display: none; } }

/* ---- compact floating EN|TL pill (mobile hero only; same DOM as the other
       pills — restyled here, not forked). ~23px tall two-segment pill. ---- */
.lang-float { display: none; }
@media (max-width: 767px) {
  .lang-float {
    display: block;
    position: fixed;
    right: 12px;
    top: calc(var(--nav-height, 68px) + 6px);
    z-index: 90;                 /* above hero content, below the sticky header (100) */
    transition: opacity .25s ease;
  }
}
.lang-float .np-lang-pill {
  height: auto;
  padding: 2px;
  border: 1px solid rgba(212,169,74,.7);
  border-radius: 12px;
  background: rgba(9,17,31,.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.30);
  overflow: visible;             /* let the enlarged tap area extend past the pill */
}
.lang-float .np-lang-pill button {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 30px; min-width: 40px; padding: 0 8px;
  border-radius: 14px; border-left: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: transparent; color: rgba(212,169,74,.8);
}
/* invisible ≥44×44 touch target per segment (visual stays compact; ~4px overlap between EN|TL) */
.lang-float .np-lang-pill button::before {
  content: ''; position: absolute; top: -7px; bottom: -7px; left: -2px; right: -2px;
}
.lang-float .np-lang-pill button.active {
  background: linear-gradient(135deg, #eac568, #d4a94a);
  color: #0c1a2e;
}
@media (prefers-reduced-motion: reduce) {
  .lang-float { transition: none; }
}
/* mobile-menu language row: pill sits under the section label, aligned with rows */
.mob-lang { margin-top: 6px; padding: 0 4px; }
.mob-lang .np-lang-pill { }
/* overlay-mounted pill sits in the sticky header, left of the close button */
#np-feasibility .npf-langswitch { position: absolute; top: 16px; right: 62px; z-index: 3; }

/* ============================================================================
   HERO RESTRUCTURE — two-column hero (headline | feasibility card), news
   carousel demoted to a slim strip, compact single-row card on mobile.
   Overrides css/hero.css (loaded earlier) for the >768 two-column layout.
   ============================================================================ */
/* Feasibility surfaces deduped: the hero right-column card and the catalog nudge
   banner were removed; the Feasibility Study tile in the 2x2 category grid is now
   the single entry point (it calls NP_FEASIBILITY.open()). With the right column
   gone, the hero is single-column at all widths — cap the content width so the
   sub-paragraph stays readable on wide desktops. (.hero-visual rules dropped —
   the element no longer exists.) */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 769px) {
  .hero-content  { max-width: 720px; }
  .hero-headline { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.06; }
}
@media (max-width: 768px) {
  .hero-grid { text-align: center; }
}

/* news strip spans both columns, sitting directly under the hero grid */
/* News carousel reverted to its original tall ranked-card layout (css/insights-
   carousel.css) — the slim-strip .ic-strip override was removed per request.
   It sits in a row under the two-column hero, capped to its original ~640px
   column width so the tall cards (esp. the image slide, whose img is height:auto)
   keep their previous proportions instead of ballooning at full width. */
.hero-news { grid-column: 1 / -1; width: 100%; max-width: 660px; margin-top: 18px; }

