/* ============================================================
   JamiaPrep — Landing page (view-home)
   JMI institutional identity: deep Jamia green, heritage gold,
   sandstone cream, serif display type over the campus imagery.
   Loaded after styles.css; scoped to .lp-* classes plus targeted
   overrides of the featured/catalogue cards rendered on home.
   ============================================================ */

:root {
  --lp-green-900: #06281e;
  --lp-green-800: #083b2c;
  --lp-green-700: #0b4a38;
  --lp-gold-300: #e7c768;
  --lp-gold-400: #d4af37;
  --lp-gold-600: #b3892a;
  --lp-cream: #faf7f0;
  --lp-header-h: 72px;
}

/* ---------- Skip link ---------- */
.lp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lp-green-700); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}
.lp-skip:focus { left: 0; color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.lp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  background: linear-gradient(rgba(6,40,30,.55), rgba(6,40,30,0));
  border-bottom: 1px solid transparent;
}
.lp-header.is-scrolled {
  background: rgba(8,59,44,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(6,40,30,.25);
  border-bottom-color: rgba(231,199,104,.22);
}
.lp-header__inner {
  max-width: 1240px; margin: 0 auto; height: var(--lp-header-h);
  padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.lp-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.lp-brand:hover { color: #fff; }
.lp-brand__mark { display: block; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.lp-brand__word {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: .2px; line-height: 1.05; display: flex; flex-direction: column;
}
.lp-brand__word b { font-weight: 600; color: var(--lp-gold-300); display: inline; }
.lp-brand__word { display: block; }
.lp-brand__word small {
  display: block; font-family: var(--font-sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 2px;
}

.lp-nav { display: flex; align-items: center; gap: 4px; }
.lp-nav__link {
  color: rgba(255,255,255,.92); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lp-nav__link:hover { color: #fff; background: rgba(255,255,255,.12); }
.lp-nav__sep { width: 1px; height: 20px; background: rgba(255,255,255,.25); margin: 0 6px; }
.lp-nav__cta {
  margin-left: 6px; padding: 9px 18px; border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--lp-gold-300), var(--lp-gold-400));
  color: var(--lp-green-900); font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(212,175,55,.35);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.lp-nav__cta:hover { color: var(--lp-green-900); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,175,55,.45); }
/* Theme toggle injected by app.js gets pill styling here */
.lp-nav .theme-toggle {
  border: 1px solid rgba(255,255,255,.3); background: transparent;
  color: rgba(255,255,255,.92); font-size: 13px; padding: 7px 12px;
  border-radius: var(--radius-pill); margin-left: 6px;
}
.lp-nav .theme-toggle:hover { background: rgba(255,255,255,.12); }

@media (max-width: 920px) {
  .lp-nav__link[data-scroll], .lp-nav__sep { display: none; }
}
@media (max-width: 560px) {
  .lp-brand__word small { display: none; }
  /* The shared .topbar__nav allows wrapping; inside the fixed-height header
     that stacks links on top of each other — never wrap here. */
  .lp-nav { flex-wrap: nowrap; }
  /* Long text links can't fit next to the brand; both live in the footer too. */
  .lp-nav__link[href="#/results"], .lp-nav__link[href="#/my-tests"] { display: none; }
  .lp-nav__link:not(.lp-nav__cta) { font-size: 13px; padding: 7px 9px; }
}
/* Very small phones (≤360px): keep the header row and hero title on-screen */
@media (max-width: 400px) {
  .lp-header__inner { padding: 0 12px; gap: 8px; }
  .lp-nav__cta { margin-left: 4px; padding: 9px 13px; }
  .lp-hero__inner { padding-left: 16px; padding-right: 16px; }
  .lp-hero .lp-hero__title em { white-space: normal; }
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero { position: relative; isolation: isolate; color: #fff; }
.lp-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
}
.lp-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(78deg, rgba(6,40,30,.93) 0%, rgba(8,59,44,.78) 42%, rgba(8,59,44,.30) 78%, rgba(6,40,30,.42) 100%),
    linear-gradient(180deg, rgba(6,40,30,.35) 0%, rgba(6,40,30,0) 30%, rgba(6,40,30,.55) 100%);
}
.lp-hero__inner {
  max-width: 1240px; margin: 0 auto;
  padding: calc(var(--lp-header-h) + 72px) 20px 64px;
}
.lp-hero__kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--lp-gold-300);
}
.lp-hero__rule { width: 44px; height: 2px; background: var(--lp-gold-400); display: inline-block; }
.lp-hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-optical-sizing: auto; font-variation-settings: "opsz" 120;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.1; letter-spacing: -.012em;
  margin: 0; max-width: 17ch; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(6,40,30,.45);
}
.lp-hero__title em {
  font-style: italic; font-weight: 500; color: var(--lp-gold-300); white-space: nowrap;
}
.lp-hero__sub {
  margin: 22px 0 0; max-width: 56ch; font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.65; color: rgba(255,255,255,.88);
}
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.lp-btn--gold {
  background: linear-gradient(180deg, var(--lp-gold-300), var(--lp-gold-400));
  color: var(--lp-green-900); box-shadow: 0 6px 22px rgba(212,175,55,.38);
}
.lp-btn--gold:hover { color: var(--lp-green-900); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,175,55,.5); }
.lp-btn--ghost {
  border: 1.5px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lp-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-2px); }

.lp-hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 34px 0 0; padding: 0; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85);
}
.lp-hero__trust li { display: flex; align-items: center; gap: 8px; }
.lp-hero__trust li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800;
  background: var(--lp-gold-400); color: var(--lp-green-900);
}

/* Social-proof badge — live, growing aspirant count near the hero */
.lp-hero__proof {
  display: inline-flex; align-items: center; gap: 11px;
  margin: 26px 0 0; padding: 8px 16px 8px 12px;
  background: rgba(6, 40, 30, .46);
  border: 1px solid rgba(231, 199, 104, .34);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92); font-size: 13.5px; line-height: 1.3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.lp-hero__proof-dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); animation: lp-pulse 2.4s infinite;
}
.lp-hero__proof-avatars { display: inline-flex; }
.lp-hero__proof-avatars i {
  width: 25px; height: 25px; border-radius: 50%; display: inline-block;
  margin-left: -9px; border: 2px solid var(--lp-green-800);
  background: linear-gradient(135deg, var(--lp-gold-300), var(--lp-gold-600));
}
.lp-hero__proof-avatars i:first-child { margin-left: 0; }
.lp-hero__proof-avatars i:nth-child(2) { background: linear-gradient(135deg, #7fd1ae, #0b4a38); }
.lp-hero__proof-avatars i:nth-child(3) { background: linear-gradient(135deg, #e7c768, #b3892a); }
.lp-hero__proof-avatars i:nth-child(4) { background: linear-gradient(135deg, #9ec5ff, #3b5bdb); }
.lp-hero__proof-text b { color: var(--lp-gold-300); font-weight: 800; }
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero__proof-dot { animation: none; }
}

/* Stats band — bridges hero and first section */
.lp-stats {
  max-width: 1100px; margin: 26px auto 0; padding: 0 20px;
  position: relative; z-index: 2; transform: translateY(56px); margin-top: -16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--ink-200);
  box-shadow: var(--shadow-lg);
  padding: 0;
}
.lp-stat {
  background: var(--surface); padding: 22px 18px; text-align: center;
}
.lp-stat b {
  display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px);
  font-weight: 700; color: var(--brand-700); line-height: 1.1;
}
.lp-stat span {
  display: block; margin-top: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500);
}
@media (min-width: 720px) {
  .lp-stats { grid-template-columns: repeat(4, 1fr); margin-left: auto; margin-right: auto; }
}
@media (max-width: 719px) {
  .lp-stats { margin-left: 16px; margin-right: 16px; }
}

/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
.lp-section { padding: 120px 0 72px; }
.lp-section__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.lp-eyebrow {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent-700);
}
.lp-eyebrow::before { content: "— "; color: var(--accent-600); }
.lp-h2 {
  font-family: var(--font-display); font-weight: 600;
  font-optical-sizing: auto; font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.6vw, 43px); line-height: 1.14; letter-spacing: -.008em;
  margin: 0 0 14px; color: var(--ink-900); text-wrap: balance;
}
.lp-h2 em { font-style: italic; font-weight: 500; color: var(--brand-600); }
.lp-lead { margin: 0 0 36px; max-width: 62ch; font-size: 16.5px; line-height: 1.65; color: var(--ink-500); }

/* ============================================================
   LAUNCH VIDEO — cinematic frame between hero and daily challenge
   ============================================================ */
/* Top padding = 56px hero-stats overhang + 48px visual gap, so the visible
   space above the video equals the 48px below it. */
.lp-video { padding: 104px 0 48px; }
.lp-video__frame {
  max-width: 900px; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand-700), #083b2c);
  border: 1px solid var(--accent-100);
  box-shadow: 0 24px 60px -24px rgba(11, 74, 56, .45);
}
.lp-video__player { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1008; }

/* ============================================================
   PROGRAMMES — featured cards, rebuilt as institutional tiles
   ============================================================ */
#lp-programmes { padding-top: 132px; }
#lp-programmes .featured-grid {
  display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 8px;
}
@media (min-width: 720px) { #lp-programmes .featured-grid { grid-template-columns: repeat(3, 1fr); } }

#lp-programmes .featured-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-top: 3px solid var(--brand-600);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
#lp-programmes .featured-card::after {
  /* faint arch watermark */
  content: ""; position: absolute; right: -34px; top: -10px; width: 130px; height: 170px;
  border: 2px solid var(--brand-100);
  border-bottom: none; border-radius: 999px 999px 0 0; opacity: .8; pointer-events: none;
}
#lp-programmes .featured-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--accent-600);
}
#lp-programmes .featured-card__top { display: flex; align-items: flex-start; gap: 14px; }
#lp-programmes .featured-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--lp-green-700), var(--lp-green-800));
  color: var(--lp-gold-300); font-weight: 800; font-size: 14px; letter-spacing: .06em;
  box-shadow: inset 0 0 0 1.5px rgba(231,199,104,.45);
}
#lp-programmes .featured-card__name {
  font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink-900); line-height: 1.2;
}
#lp-programmes .featured-card__tag { margin-top: 4px; font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }
#lp-programmes .featured-card__stats { display: flex; gap: 10px; margin-top: auto; }
#lp-programmes .featured-stat {
  font-size: 13px; font-weight: 600; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
#lp-programmes .featured-stat b { font-weight: 800; }
#lp-programmes .featured-card__cta {
  font-size: 14.5px; font-weight: 700; color: var(--accent-700);
  display: inline-flex; align-items: center; gap: 6px;
}
#lp-programmes .featured-card:hover .featured-card__cta { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   PAPERS / EXPLORE — tinted archive section
   ============================================================ */
.lp-section--papers {
  background:
    radial-gradient(1100px 420px at 85% -8%, var(--brand-100) 0%, transparent 60%),
    var(--brand-50);
  border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid var(--brand-100);
  padding-bottom: 96px;
}
.lp-section--papers .hero-search { max-width: 620px; margin-bottom: 28px; }
.lp-browse-heading { margin-top: 28px; }

/* ============================================================
   WHY — split media + features
   ============================================================ */
.lp-why { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .lp-why { grid-template-columns: 5fr 6fr; } }

.lp-why__media { position: relative; }
.lp-why__media > img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-200);
}
.lp-why__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-100), transparent 70%);
  border: 1.5px solid var(--accent-100);
}
.lp-why__quote {
  position: absolute; left: 18px; right: 18px; bottom: -26px; margin: 0;
  background: var(--surface); border: 1px solid var(--ink-200);
  border-left: 3px solid var(--accent-600);
  border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow);
}
.lp-why__quote blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: 15.5px; line-height: 1.5; color: var(--ink-800);
}
.lp-why__quote figcaption {
  margin-top: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-400);
}
@media (max-width: 979px) { .lp-why__body { margin-top: 30px; } }

.lp-feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.lp-feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.lp-feature__ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; font-size: 21px;
  border-radius: 13px; background: var(--brand-50); border: 1px solid var(--brand-100);
}
.lp-feature-list b { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink-900); }
.lp-feature-list p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-500); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.lp-steps {
  list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0;
  display: grid; gap: 22px;
}
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step {
  position: relative; background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-xs);
}
.lp-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  background: linear-gradient(180deg, var(--lp-gold-300), var(--lp-gold-400));
  color: var(--lp-green-900); box-shadow: 0 3px 10px rgba(212,175,55,.35);
}
.lp-step h3 {
  margin: 16px 0 8px; font-family: var(--font-display);
  font-size: 19px; font-weight: 600; color: var(--ink-900);
}
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-500); }

/* ============================================================
   CAMPUS GALLERY
   ============================================================ */
.lp-section--campus { padding-bottom: 96px; }
.lp-gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
@media (min-width: 860px) { .lp-gallery { grid-template-columns: repeat(4, 1fr); } }
.lp-gallery figure {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); border: 1px solid var(--ink-200);
}
.lp-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--ease);
}
.lp-gallery figure:hover img { transform: scale(1.05); }
.lp-gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: linear-gradient(transparent, rgba(6,40,30,.85));
}

/* ============================================================
   FAQ
   ============================================================ */
.lp-faq { max-width: 820px; }
.lp-qa {
  background: var(--surface); border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); margin-top: 12px;
  box-shadow: var(--shadow-xs); overflow: hidden;
  transition: border-color .15s var(--ease);
}
.lp-qa[open] { border-color: var(--brand-500); }
.lp-qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-size: 15.5px; font-weight: 600; color: var(--ink-900);
}
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::after {
  content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; font-size: 18px; font-weight: 600;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100);
  transition: transform .2s var(--ease);
}
.lp-qa[open] summary::after { content: "–"; transform: rotate(180deg); }
.lp-qa p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--ink-500); }
.lp-qa a { font-weight: 600; }

/* ============================================================
   CONTACT / FEEDBACK
   ============================================================ */
.lp-section--contact {
  background:
    radial-gradient(900px 360px at 12% 0%, var(--brand-50) 0%, transparent 62%),
    var(--surface);
  border-top: 1px solid var(--brand-100);
}
.lp-contact {
  display: grid; gap: 40px; align-items: start;
}
@media (min-width: 940px) {
  .lp-contact { grid-template-columns: 5fr 6fr; gap: 56px; }
}
.lp-contact .lp-lead { margin-bottom: 28px; }

.lp-contact__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lp-contact__points li { display: flex; gap: 14px; align-items: flex-start; }
.lp-contact__ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; font-size: 19px; border-radius: 11px;
  background: linear-gradient(135deg, var(--lp-green-700), var(--lp-green-800));
  color: var(--lp-gold-300); box-shadow: inset 0 0 0 1.5px rgba(231,199,104,.4);
}
.lp-contact__points b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.lp-contact__points p { margin: 3px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-500); }
.lp-contact__points a { font-weight: 600; }

/* ---- Form card ---- */
.lp-contact__form {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-top: 3px solid var(--lp-gold-400);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.lp-contact__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .lp-contact__row { grid-template-columns: 1fr 1fr; } }

.lp-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.lp-field__label { font-size: 13px; font-weight: 700; color: var(--ink-700); letter-spacing: .01em; }
.lp-field__label small { font-weight: 500; color: var(--ink-400); letter-spacing: 0; }
.lp-field input,
.lp-field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink-900);
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.lp-field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.lp-field input::placeholder,
.lp-field textarea::placeholder { color: var(--ink-400); }
.lp-field input:focus,
.lp-field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.lp-field input.is-invalid,
.lp-field textarea.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.1); }
.lp-field__count { align-self: flex-end; font-size: 11.5px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.lp-field__error {
  color: #c0392b; font-size: 13px; font-weight: 600;
  background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.2);
  border-radius: var(--radius-sm); padding: 9px 12px;
}

/* Segmented "what's this about" control */
.lp-segment {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--ink-50); border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-pill); padding: 5px;
}
.lp-segment__opt {
  flex: 1 1 auto; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-500);
  padding: 9px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.lp-segment__opt:hover { color: var(--ink-800); }
.lp-segment__opt.is-active {
  background: var(--lp-green-700); color: #fff;
  box-shadow: 0 2px 8px rgba(11,74,56,.28);
}

.lp-contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.lp-contact__actions .lp-btn { padding: 13px 30px; }
.lp-contact__actions .lp-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.lp-contact__note { font-size: 12.5px; color: var(--ink-400); }

/* Success state */
.lp-contact__done {
  background: var(--surface); border: 1px solid var(--brand-100);
  border-top: 3px solid var(--brand-500);
  border-radius: var(--radius-xl); padding: 40px 28px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.lp-contact__done-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; font-size: 26px; font-weight: 800;
  background: var(--brand-50); color: var(--brand-600); border: 2px solid var(--brand-100);
}
.lp-contact__done h3 {
  margin: 18px 0 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 22px; color: var(--ink-900);
}
.lp-contact__done p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink-500); }
.lp-btn--dark { border-color: var(--ink-300); color: var(--ink-700); background: var(--surface); }
.lp-btn--dark:hover { color: var(--ink-900); background: var(--ink-50); transform: translateY(-2px); }

:root[data-theme="dark"] .lp-section--contact {
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(22,56,44,.5) 0%, transparent 62%),
    var(--ink-50);
}
:root[data-theme="dark"] .lp-field input,
:root[data-theme="dark"] .lp-field textarea { background: var(--ink-100); }
:root[data-theme="dark"] .lp-segment { background: var(--ink-100); }

@media (prefers-reduced-motion: reduce) {
  .lp-btn--dark, .lp-segment__opt { transition: none; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.lp-final {
  margin: 40px 0 0; padding: 0 20px 0;
}
.lp-final__inner {
  max-width: 1240px; margin: 0 auto; text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 84px) 24px;
  background:
    radial-gradient(620px 240px at 50% -60px, rgba(231,199,104,.18), transparent 70%),
    linear-gradient(160deg, var(--lp-green-800), var(--lp-green-900));
  border: 1px solid rgba(231,199,104,.25);
  box-shadow: var(--shadow-lg);
}
.lp-final h2 {
  margin: 0 0 28px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; color: #fff; text-wrap: balance;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  margin-top: 72px;
  background: var(--lp-green-900); color: rgba(255,255,255,.82);
  border-top: 3px solid var(--lp-gold-400);
}
.lp-footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 56px 20px 36px;
  display: grid; gap: 36px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .lp-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.lp-footer__brand p { margin: 14px 0 0; max-width: 36ch; font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.66); }
.lp-footer .lp-brand__word small { display: none; }
.lp-footer__col { display: flex; flex-direction: column; gap: 10px; }
.lp-footer__col h4 {
  margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lp-gold-300);
}
.lp-footer__col a { color: rgba(255,255,255,.82); font-size: 14px; }
.lp-footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp-footer__legal {
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 1240px; margin: 0 auto; padding: 22px 20px 90px;
}
@media (min-width: 760px) { .lp-footer__legal { padding-bottom: 32px; } }
.lp-footer__legal p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.55); }
.lp-footer__legal a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 2px; }
.lp-footer__legal a:hover { color: #fff; }
.lp-footer__legal b { color: rgba(255,255,255,.8); }

/* ============================================================
   DARK THEME ADJUSTMENTS
   The hero / final CTA / footer are photo- and green-based and
   already dark; tune the tinted archive band + watermarks.
   ============================================================ */
:root[data-theme="dark"] .lp-section--papers {
  background:
    radial-gradient(1100px 420px at 85% -8%, rgba(22,56,44,.6) 0%, transparent 60%),
    var(--ink-50);
  border-color: var(--ink-200);
}
:root[data-theme="dark"] .lp-stat b { color: var(--brand-700); }
:root[data-theme="dark"] #lp-programmes .featured-card__badge {
  box-shadow: inset 0 0 0 1.5px rgba(231,199,104,.5);
}
:root[data-theme="dark"] .lp-final__inner { border-color: rgba(231,199,104,.18); }

/* ============================================================
   MISC
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lp-gallery img, .lp-btn, #lp-programmes .featured-card { transition: none; }
}
