/*
 * Landing page — a trading-terminal visual language applied to a greenhouse.
 *
 * The palette, surfaces and fonts all come from styles.css, so the landing and the platform are one
 * product rather than two. What this file adds is layout and motion.
 *
 * One rule holds throughout: the neon accent dresses the chrome — brand, buttons, focus, glow — and
 * never the data. Chart series and status colours stay on their validated steps, because a colour
 * chosen to look good in a hero is not a colour anyone should read a threshold from.
 */

/* ------------------------------------------------------------------ language switch */

:root[data-ui-lang="ar"] [lang="en"] { display: none !important; }
:root[data-ui-lang="en"] [lang="ar"] { display: none !important; }

html { scroll-behavior: smooth; }
/*
 * `clip`, not `hidden`. `overflow-x: hidden` on body forces overflow-y to `auto`, which turns body
 * into its own scroll container — the page then stops responding to window scrolling and every
 * IntersectionObserver keyed to the viewport goes quiet. `clip` trims the hero glow the same way
 * without creating a scroll box.
 */
body.landing { line-height: 1.75; overflow-x: clip; }
body.landing::before { opacity: 0.5; }

.landing code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}

[id="features"], [id="modules"], [id="rigour"], [id="safety"], [id="start"] {
  scroll-margin-block-start: 96px;
}

/* ------------------------------------------------------------------ nav */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 30px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Pinned to LTR: a company name keeps its order and its side inside an RTL page, so the mark
   and the words sit the same way round on every page of the product. */
.lp-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  direction: ltr;
  unicode-bidi: isolate;
}
.lp-brand__tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  box-shadow: var(--accent-glow);
}
.lp-brand__tile img { width: 30px; height: 30px; object-fit: contain; }
.lp-brand__text { display: flex; flex-direction: column; line-height: 1.24; }
.lp-brand__text strong { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: -0.02em; }
.lp-brand__text em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); }

.lp-nav__links { display: flex; gap: 2px; margin-inline-start: auto; }
.lp-nav__links a {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease;
}
.lp-nav__links a:hover { background: var(--surface-2); color: var(--text-primary); }

.lp-nav__actions { display: flex; align-items: center; gap: 8px; }

.lp-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.lp-icon-btn:hover {
  color: var(--brand-green);
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

.lp-cta {
  padding: 10px 20px;
  border-radius: 11px;
  background: var(--brand-green);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lp-cta:hover { transform: translateY(-1px); box-shadow: var(--accent-glow); }

/* The quieter of the two doors: signing in is for people who already know they belong here, so it
   does not compete with the invitation to create an account. */
.lp-cta--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}
.lp-cta--ghost:hover { color: var(--text-primary); box-shadow: none; }

/* ------------------------------------------------------------------ hero */

.lp-hero {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 68px 30px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 46px;
  align-items: center;
}
.lp-hero__glow {
  position: absolute;
  inset-block-start: -180px;
  inset-inline-start: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 198, 245, 0.16), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.lp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.lp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(61, 245, 122, 0.6);
  animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 245, 122, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 245, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 245, 122, 0); }
}

.lp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(110deg, var(--brand-cyan), var(--brand-green), var(--brand-cyan));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lp-shimmer 7s ease-in-out infinite;
}
@keyframes lp-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.lp-lead {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: 30px;
}

.lp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lp-btn--primary { background: var(--brand-green); color: var(--accent-ink); }
.lp-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--accent-glow); }
.lp-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.lp-btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand-green); }
.lp-btn__arrow { transition: transform 0.18s ease; }
:root[dir="rtl"] .lp-btn__arrow { transform: scaleX(-1); }
.lp-btn--primary:hover .lp-btn__arrow { transform: translateX(3px); }
:root[dir="rtl"] .lp-btn--primary:hover .lp-btn__arrow { transform: scaleX(-1) translateX(3px); }

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.lp-trust svg { color: var(--brand-green); flex: none; }

/* ------------------------------------------------------------------ chart card */

.lp-hero__panel { position: relative; }

.lp-chart-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px 18px;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
.lp-chart-card__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.lp-chart-card__pair { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.lp-chart-card__sub { font-size: 0.8rem; color: var(--text-muted); }
.lp-chart-card__value { margin-inline-start: auto; text-align: end; }
.lp-chart-card__value strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lp-delta { font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-delta--up   { color: var(--status-good); }
.lp-delta--down { color: var(--status-critical); }
.lp-delta--flat { color: var(--text-muted); }

.lp-chart-card__plot { min-height: 190px; margin: 6px -6px 8px; }
.lp-chart-card__plot svg { display: block; width: 100%; height: auto; }

.lp-range { display: flex; gap: 5px; }
.lp-range__btn {
  padding: 5px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}
.lp-range__btn:hover { color: var(--text-primary); background: var(--surface-2); }
.lp-range__btn.is-active {
  background: var(--brand-cyan);
  color: var(--accent-ink);
  border-color: var(--brand-cyan);
}

/*
 * An explicit `display` in an author stylesheet beats the `hidden` attribute, which only carries
 * `display: none` from the UA sheet. Without these rules the chips and the pill render as empty
 * shapes whenever there is no server to fill them — which is exactly the case on a static host.
 */
.lp-float[hidden], .lp-live-pill[hidden] { display: none; }

/* Shown in place of the live chart when no server is answering, so the hero stays balanced. */
.lp-hero__fallback {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
.lp-hero__fallback img { display: block; width: 100%; height: auto; }

/* Floating chips — the reference's coin cards, carrying sensor readings. */
.lp-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 15px;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.95);
  animation: lp-float 6s ease-in-out infinite;
}
/*
 * Kept clear of the card header. The reference floats its first chip straight over the price, which
 * reads as a bug rather than a flourish — these sit against the chart's own empty space instead.
 */
.lp-float--a { inset-block-start: 30%; inset-inline-start: -28px; }
.lp-float--b { inset-block-end: 12%; inset-inline-end: -24px; animation-delay: -3s; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.lp-float__ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.9rem;
  flex: none;
}
.lp-float__body { display: flex; flex-direction: column; line-height: 1.3; }
.lp-float__name { font-size: 0.7rem; color: var(--text-muted); }
.lp-float__value {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lp-float__value span { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); margin-inline-start: 3px; }

/* ------------------------------------------------------------------ ticker */

.lp-ticker {
  border-block: 1px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
  margin-bottom: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  /*
   * The direction has to be pinned on the overflow container, not just the track: it is the
   * scrolling box that decides which edge the overflow starts from. Left as RTL, content wider than
   * the box spills to the left and the whole strip renders off-screen. Each item is put back to RTL
   * below, so the Arabic inside still reads correctly.
   */
  direction: ltr;
}
.lp-ticker__track {
  display: flex;
  gap: 44px;
  padding: 13px 0;
  width: max-content;
  animation: lp-marquee 42s linear infinite;
}
:root[dir="rtl"] .lp-tick { direction: rtl; }
.lp-ticker:hover .lp-ticker__track { animation-play-state: paused; }
@keyframes lp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.lp-tick { display: inline-flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.lp-tick__sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.lp-tick__name { font-size: 0.78rem; color: var(--text-muted); }
.lp-tick__val { font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-tick__state { font-size: 0.78rem; font-weight: 600; }

/* ------------------------------------------------------------------ sections */

.lp-section { padding: 74px 30px; }
.lp-section--alt {
  background: var(--surface-1);
  border-block: 1px solid var(--border);
}

.lp-section__head { max-width: 1320px; margin: 0 auto 40px; }
.lp-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}
.lp-section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 12px;
}
.lp-section__head p { font-size: 1rem; color: var(--text-secondary); max-width: 74ch; }

/* ------------------------------------------------------------------ photo strip */

.lp-gallery { padding: 52px 0 46px; }
.lp-gallery[hidden] { display: none; }
.lp-gallery__head { max-width: 1320px; margin: 0 auto 26px; padding-inline: 30px; }
.lp-gallery__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.lp-gallery__strip {
  overflow: hidden;
  padding-block: 4px;
  /* Same lesson as the sensor ticker: the direction has to be pinned on the overflow container.
     Left as RTL, a track wider than the box spills the wrong way and the strip renders off-screen. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.lp-gallery__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: lp-gallery-scroll 50s linear infinite;
}
.lp-gallery__strip:hover .lp-gallery__track,
.lp-gallery__strip:focus-within .lp-gallery__track { animation-play-state: paused; }

@keyframes lp-gallery-scroll {
  from { transform: translateX(0); }
  /* Exactly half: the track holds the same photographs twice, so half a lap lands on an identical
     frame and the loop has no visible seam. */
  to   { transform: translateX(-50%); }
}

.lp-shot {
  position: relative;
  flex: none;
  width: 232px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  cursor: zoom-in;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lp-shot img { display: block; width: 100%; height: 152px; object-fit: cover; }
.lp-shot figcaption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 16px 11px 8px;
  font-size: 0.74rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.22s ease;
}
:root[dir="rtl"] .lp-shot figcaption { direction: rtl; text-align: right; }
.lp-shot:hover,
.lp-shot:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.9);
}
.lp-shot:hover figcaption,
.lp-shot:focus-visible figcaption { opacity: 1; }

.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.9);
  cursor: zoom-out;
  animation: lp-lightbox-in 0.18s ease;
}
.lp-lightbox figure { margin: 0; max-width: min(1100px, 94vw); }
.lp-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  object-fit: contain;
}
.lp-lightbox figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
@keyframes lp-lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ about */

.lp-about {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.lp-about__body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 78ch;
}
.lp-about__tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 26px 0 0;
  padding-inline-start: 16px;
  /* A rule on the reading edge rather than a quote mark — this is a positioning line, not a quote,
     and the logical property keeps it on the correct side in both directions. */
  border-inline-start: 3px solid var(--brand-green);
}

.lp-about__aside {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  padding: 24px 22px;
}
.lp-about__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-gradient);
  margin-bottom: 18px;
}
.lp-about__mark img { width: 32px; height: 32px; object-fit: contain; }
.lp-about__aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.lp-about__aside li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.lp-about__aside li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
}

/* ------------------------------------------------------------------ features */

.lp-features {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.lp-feature {
  position: relative;
  padding: 26px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
/* A gradient hairline that only lights up on hover, so the grid stays calm at rest. */
.lp-feature::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lp-feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 46px -28px rgba(0, 0, 0, 0.95);
}
.lp-feature:hover::after { opacity: 1; }

.lp-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-green);
  margin-bottom: 16px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.lp-ico svg { width: 26px; height: 26px; }
.lp-feature:hover .lp-ico,
.lp-module:hover .lp-ico {
  background: var(--accent-gradient);
  color: var(--accent-ink);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px) rotate(-4deg);
}

.lp-feature h3 { font-size: 1.05rem; margin-bottom: 9px; }
.lp-feature p { font-size: 0.9rem; color: var(--text-secondary); }

/* ------------------------------------------------------------------ modules */

.lp-modules {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lp-module {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--page);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lp-module:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: 0 22px 46px -28px rgba(0, 0, 0, 0.95);
}
.lp-module__tag {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-gradient);
  padding: 4px 11px;
  border-radius: 999px;
}
.lp-module h3 { font-size: 1.15rem; }
.lp-module ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-module li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  padding-inline-start: 20px;
  position: relative;
}
.lp-module li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-green);
}
.lp-module__go {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--brand-green);
}

/* ------------------------------------------------------------------ the product

   Screenshots of the running application, framed as an application. The window chrome is doing real
   work: it tells the eye "this is software, photographed" rather than "this is a diagram, drawn",
   and that is the entire difference between showing a product and describing one. */

.lp-product { max-width: 1320px; margin: 0 auto; }

.lp-product__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.lp-product__tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.lp-product__tab:hover { color: var(--text-primary); border-color: var(--brand-green); }
.lp-product__tab.is-active {
  background: var(--accent-gradient);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: var(--accent-glow);
}
/* The tour sits apart from the five screens: it is a different kind of thing to press. */
.lp-product__tab--play { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; }

.lp-window {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.lp-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.lp-window__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
}
.lp-window__url {
  margin-inline-start: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  color: var(--text-muted);
  /* A long screen name must never push the traffic lights off the bar. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-window__body { position: relative; background: #05070c; }
.lp-window__body img {
  display: block;
  width: 100%;
  height: auto;
  /* Reserved by the width/height attributes, so the page does not jump as each shot arrives. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}
.lp-window figcaption {
  padding: 15px 20px 18px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .lp-product__tab { font-size: 0.8rem; padding: 8px 14px; }
  .lp-product__tab--play { margin-inline-start: 0; }
  .lp-window__url { display: none; }
}

/* ------------------------------------------------------------------ rigour */

.lp-rigour {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.lp-rig {
  position: relative;
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-1);
  border-inline-start: 3px solid var(--brand-cyan);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lp-rig:hover { transform: translateY(-3px); border-inline-start-color: var(--brand-green); }
.lp-rig__n {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}
.lp-rig h3 { font-size: 1rem; margin-bottom: 9px; }
.lp-rig p { font-size: 0.89rem; color: var(--text-secondary); }

/* ------------------------------------------------------------------ numbers */

.lp-numbers {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 30px 74px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.lp-number {
  text-align: center;
  padding: 26px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.lp-number:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.lp-number strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
.lp-number span { font-size: 0.84rem; color: var(--text-secondary); }

/* ------------------------------------------------------------------ safety */

.lp-safety {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--status-critical);
  border-radius: 18px;
  background: color-mix(in srgb, var(--status-critical) 8%, var(--page));
}
.lp-safety__mark { color: var(--status-critical); padding-top: 2px; }
.lp-safety h3 { font-size: 1.08rem; margin-bottom: 9px; }
.lp-safety p { font-size: 0.92rem; color: var(--text-secondary); max-width: 92ch; }

/* ------------------------------------------------------------------ cta band */

.lp-cta-band {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 30px;
  text-align: center;
  overflow: hidden;
}
.lp-cta-band__glow {
  position: absolute;
  inset-block-start: 10%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 245, 122, 0.13), transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.lp-cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.lp-cta-band > p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 28px; }

.lp-terminal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 20px;
  border-radius: 13px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  margin-bottom: 30px;
  direction: ltr;
}
.lp-terminal__dots { display: inline-flex; gap: 6px; }
.lp-terminal__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--axis); }
.lp-terminal__dots i:first-child { background: var(--status-critical); }
.lp-terminal__dots i:nth-child(2) { background: var(--status-warning); }
.lp-terminal__dots i:last-child { background: var(--status-good); }
.lp-terminal code {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.02rem;
  color: var(--brand-green);
}
.lp-copy {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
}
.lp-copy:hover { color: var(--brand-green); border-color: var(--brand-green); }

.lp-cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta-band__actions--secondary { margin-top: 12px; }
.lp-cta-band__actions--secondary .lp-btn { font-size: 0.88rem; padding-block: 10px; }

/* ------------------------------------------------------------------ contact */

.lp-contacts {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.lp-contact {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lp-contact::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lp-contact:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 46px -28px rgba(0, 0, 0, 0.95);
}
.lp-contact:hover::after { opacity: 1; }
.lp-contact:hover .lp-ico {
  background: var(--accent-gradient);
  color: var(--accent-ink);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px) rotate(-4deg);
}

.lp-contact h3 { font-size: 1.02rem; margin-bottom: 10px; }
.lp-contact ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.lp-contact a {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  /* Numbers, addresses and URLs are Latin-script data inside an Arabic page. The dir="ltr" in the
     markup isolates each one so a leading + is not reordered; tabular figures keep the two
     WhatsApp numbers from jittering against each other. */
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lp-contact a:hover { color: var(--brand-green); border-bottom-color: var(--brand-green); }

/* ------------------------------------------------------------------ sitemap */

.lp-sitemap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 30px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 26px;
  border-top: 1px solid var(--border);
}
.lp-sitemap__col h2 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 14px;
  padding-bottom: 8px;
  /* A short rule under the heading rather than a full-width one: it groups the column without
     drawing a box around every link. */
  background-image: linear-gradient(var(--brand-green), var(--brand-green));
  background-size: 34px 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
:root[dir="rtl"] .lp-sitemap__col h2 { background-position: 100% 100%; }
.lp-sitemap__col h2 + ul { margin-bottom: 26px; }
.lp-sitemap__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.lp-sitemap__col a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.16s ease, padding-inline-start 0.16s ease;
}
.lp-sitemap__col a:hover { color: var(--brand-green); padding-inline-start: 4px; }
.lp-sitemap__sub { padding-inline-start: 14px; }
.lp-sitemap__sub a { font-size: 0.84rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ whatsapp */

.wa-fab {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.wa-fab__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* WhatsApp's own green, not the SmartPonics palette: a contact button people recognise before
     they read it is the entire point of using the mark at all. */
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.8s ease-out infinite;
  transition: transform 0.18s ease;
  flex: none;
}
.wa-fab:hover .wa-fab__mark { transform: scale(1.07); }
.wa-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  padding: 9px 0;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.84rem;
  transition: max-width 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}
.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
  max-width: 240px;
  opacity: 1;
  padding: 9px 15px;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ------------------------------------------------------------------ footer */

.lp-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 30px 54px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.lp-footer p { font-size: 0.82rem; color: var(--text-muted); max-width: 78ch; flex: 1 1 340px; }

/* ------------------------------------------------------------------ reveal */

/*
 * Reveal-on-scroll is opt-in, and the opt-in happens in script only after the observer has proven it
 * delivers callbacks. Content is visible by default, so an environment where IntersectionObserver
 * never fires shows a complete page rather than a blank one — the failure mode of a reveal built the
 * other way round is a site that looks empty, which is far worse than one that does not animate.
 */
:root.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
:root.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .lp-nav { flex-wrap: wrap; gap: 12px; padding: 10px 18px; }
  .lp-nav__links { order: 3; width: 100%; overflow-x: auto; margin-inline-start: 0; }
  .lp-hero { grid-template-columns: 1fr; gap: 42px; padding: 40px 18px 34px; }
  .lp-hero__panel { margin-block: 14px 30px; }
  /* Too little room to float a chip beside the card without covering it — the ticker below carries
     the same readings, so they simply go away rather than overlap. */
  .lp-float { display: none; }
  .lp-section, .lp-numbers { padding-inline: 18px; }
  .lp-cta-band { padding: 62px 18px; }
  .lp-safety, .lp-about { grid-template-columns: 1fr; }
  .lp-footer, .lp-sitemap, .lp-gallery__head { padding-inline: 18px; }
  .lp-shot { width: 176px; }
  .lp-shot img { height: 116px; }
  /* The label would cover a third of a phone screen, and the mark alone is understood anyway. */
  .wa-fab__label { display: none; }
  .wa-fab { inset-block-end: 16px; inset-inline-end: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-pulse, .grad, .lp-float, .lp-ticker__track, .wa-fab__mark,
  .lp-gallery__track { animation: none !important; }
  /* With the marquee stopped the strip still has to reach every photograph, so it becomes something
     you scroll by hand rather than a window onto the first four. */
  .lp-gallery__strip { overflow-x: auto; }
  .lp-shot:hover { transform: none; }
  .lp-shot figcaption { opacity: 1; }
  .wa-fab:hover .wa-fab__mark { transform: none; }
  :root.reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lp-feature:hover, .lp-module:hover, .lp-rig:hover, .lp-number:hover,
  .lp-btn:hover, .lp-cta:hover { transform: none; }
}

/* ------------------------------------------------------------------ visitor ratings */

.lp-rate {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.3fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 820px) { .lp-rate { grid-template-columns: 1fr; } }

.lp-rate__summary,
.lp-rate__form {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
}
.lp-rate__summary[hidden] { display: none; }
.lp-rate__score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lp-rate__score strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.lp-rate__stars { color: #f5b301; letter-spacing: 2px; font-size: 1.15rem; }
.lp-rate__count { color: var(--text-secondary); font-size: 0.9rem; }

.lp-rate__spread { display: grid; gap: 7px; }
.lp-rate__bar {
  display: grid;
  grid-template-columns: 3.2em 1fr 2.5em;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.lp-rate__track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lp-rate__track i { display: block; height: 100%; background: #f5b301; border-radius: 99px; }

.lp-rate__form { display: grid; gap: 14px; }
/* Without the summary beside it, the form takes the whole row rather than half of it. */
.lp-rate__summary[hidden] + .lp-rate__form { grid-column: 1 / -1; max-width: 640px; }
.lp-rate__pick { border: 0; padding: 0; margin: 0; }
.lp-rate__pick legend { font-weight: 700; margin-bottom: 8px; }
.lp-rate__buttons { display: flex; gap: 6px; }
.lp-rate__buttons button {
  font-size: 2.2rem;
  line-height: 1;
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: var(--surface-3, #3a4452);
  transition: transform 0.12s ease, color 0.12s ease;
}
.lp-rate__buttons button.is-on,
.lp-rate__buttons button.is-hover { color: #f5b301; }
.lp-rate__buttons button:hover { transform: scale(1.12); }
.lp-rate__buttons button:focus-visible { outline: 2px solid var(--brand-cyan); border-radius: 6px; }
.lp-rate__field { display: grid; gap: 6px; font-size: 0.9rem; color: var(--text-secondary); }
.lp-rate__field input,
.lp-rate__field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font: inherit;
}
/* The honeypot: off-screen rather than display:none, which some scripts know to skip. */
.lp-rate__trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-rate__form { position: relative; }
.lp-rate__note { margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.lp-rate__note--ok { color: var(--brand-green); }
.lp-rate__note--error { color: var(--status-critical); }
.lp-rate__fine { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.lp-rate__fine a { color: var(--text-secondary); }

.lp-rate__comments {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.lp-rate__comment {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-1);
}
.lp-rate__comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.lp-rate__comment p { margin: 0; color: var(--text-secondary); line-height: 1.7; }

/* ------------------------------------------------------------------ nutrient deficiencies */

.np {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 900px) { .np { grid-template-columns: 1fr; } }

.np__figure {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-1);
  position: sticky;
  top: 86px;
}
@media (max-width: 900px) { .np__figure { position: static; } }

.np__plant { width: 100%; height: auto; max-height: 420px; display: block; }
.np__caption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 2.6em;
}

/*
 * How a shortage is drawn.
 *
 * Each symptom is a layer already inside the leaf at zero opacity, and choosing an element fades
 * the right ones in. Nothing swaps a fill: the yellow of a chlorosis sits over living tissue, the
 * scorch reaches in from the edge, and the veins stay on top of both — which is what the eye
 * recognises on a real plant.
 *
 * The layers are switched with inherited custom properties because the leaves are <use> copies of
 * one drawing, and an ordinary class selector cannot reach inside a copy.
 */
.np-sym { opacity: 0; transition: opacity 0.5s ease; }
.np-sym--pale { opacity: var(--sym-pale, 0); }
.np-sym--chlorosis { opacity: var(--sym-chlorosis, 0); }
.np-sym--interveinal { opacity: var(--sym-interveinal, 0); }
.np-sym--purple { opacity: var(--sym-purple, 0); mix-blend-mode: multiply; }
.np-sym--margin { opacity: var(--sym-margin, 0); }
.np-sym--necrosis { opacity: var(--sym-necrosis, 0); }
.np-sym--spots { opacity: var(--sym-spots, 0); }
.np-sym--tip-dead { opacity: var(--sym-tip-dead, 0); }
.np-fruit__rot { opacity: var(--sym-rot, 0); transition: opacity 0.5s ease; }

.np-leaf.is-chlorosis { --sym-chlorosis: 0.94; }
.np-leaf.is-interveinal { --sym-interveinal: 0.96; }
.np-leaf.is-pale { --sym-pale: 0.9; }
.np-leaf.is-purple { --sym-purple: 0.85; }
.np-leaf.is-margin { --sym-margin: 0.9; }
.np-leaf.is-necrosis { --sym-necrosis: 0.95; }
.np-leaf.is-spots { --sym-spots: 0.85; }
/* A general slow-down, not a colour: the plant simply dulls. */
.np-leaf.is-dim, .np-tip.is-dim, .np-stem.is-dim { filter: saturate(0.45) brightness(0.85); }

.np-tip.is-necrosis, .np-tip.is-distorted { --sym-tip-dead: 0.95; }
.np-fruit.is-necrosis { --sym-rot: 0.95; }
.np-fruit.is-distorted { --sym-rot: 0.6; }
.np-roots.is-necrosis .np-root-hair { filter: sepia(0.9) saturate(2.4) brightness(0.62); }
.np-stem.is-chlorosis, .np-stem.is-wilt { filter: saturate(0.6) brightness(1.05); }

/* The effect transforms live on the inner copy: a CSS transform on the leaf group itself would
   replace the transform attribute that positions it, and the leaf would fly out of the drawing. */
.np-leaf__inner, .np-tip__inner {
  transition: transform 0.45s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.np-leaf.is-wilt .np-leaf__inner { transform: rotate(14deg) translateY(5px) scaleY(0.88); }
.np-leaf.is-small .np-leaf__inner { transform: scale(0.68); }
.np-leaf.is-distorted .np-leaf__inner { transform: skewY(-10deg) scale(0.88, 1.08); }
.np-tip.is-wilt .np-tip__inner { transform: translateY(4px) rotate(9deg); transform-origin: bottom center; }

/* A halo around whatever the chosen element touches, so the eye finds it before the colour does. */
.np-leaf, .np-tip, .np-fruit, .np-roots, .np-stem { transition: filter 0.35s ease; }
.np-leaf.is-affected, .np-tip.is-affected, .np-fruit.is-affected, .np-roots.is-affected {
  filter: drop-shadow(0 0 8px rgba(245, 179, 1, 0.75));
}
.np__side { display: grid; gap: 16px; }
.np__group { display: grid; gap: 8px; }
.np__group-title { font-size: 0.9rem; color: var(--text-muted); margin: 0; font-weight: 700; }
.np__row { display: flex; flex-wrap: wrap; gap: 8px; }
.np__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.np__chip strong { font-family: var(--font-display); font-size: 0.98rem; color: var(--text-primary); }
.np__chip:hover { border-color: var(--brand-green); color: var(--text-primary); }
.np__chip.is-on {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--accent-ink);
}
.np__chip.is-on strong { color: var(--accent-ink); }

.np__card {
  padding: 20px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-1);
}
.np__card[hidden] { display: none; }
.np__card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.np__card p { margin: 0 0 10px; color: var(--text-secondary); line-height: 1.75; font-size: 0.93rem; }
.np__card p:last-child { margin-bottom: 0; }
/* Where to look, then why it is there: labelled, because the order is the diagnosis. */
.np__card .np-where::before {
  content: attr(data-label);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.np__card .np-where { color: var(--text-primary); font-weight: 600; }
.np__card .np-cause {
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--brand-cyan);
}
.np__fine { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }

/* The plain list: the whole guide when there is no JavaScript, and the data source when there is. */
.np__source .np__list { max-width: 1320px; margin: 24px auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.np-item { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-1); }
.np-item h3 { font-size: 1rem; margin: 0 0 8px; }
.np-item p { margin: 0 0 8px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.np__cta { max-width: 1320px; margin: 26px auto 0; text-align: center; }
.np__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.np__action { padding: 9px 16px; font-size: 0.88rem; }
.np__action svg { flex: none; }
.np__said { font-size: 0.84rem; color: var(--brand-green); }