/* ══════════════════════════════════════════════════════════════
   LEM GLOBAL — pages.css
   Section layouts: hero, page headers, product showcase, process,
   pricing, contact, founder.
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 84px) 0 clamp(72px, 9vw, 110px);
}

/* Coloured wash — orange top-left, lilac top-right, blue bottom. */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(240, 122, 31, 0.16) 0, transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(145, 102, 191, 0.20) 0, transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(26, 85, 152, 0.35) 0, transparent 50%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}

.hero h1 { margin-bottom: 4px; }

.hero-sub {
  margin: 20px 0 30px;
  font-size: 17px;
  color: #c7d4e6;
  max-width: 54ch;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }

.hero-visual { position: relative; }


/* ── BRAND LOGO PLATE ──────────────────────────────────────── */
/* The LEM artwork carries its own pale-grey backdrop, so on navy it read as a
   grey box stuck to the page. Sitting it on a white card lets that backdrop
   blend into the card instead of fighting the section behind it. */
.logo-plate {
  background: #fff;
  padding: clamp(16px, 2.2vw, 26px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
}

.logo-plate img { width: 100%; height: auto; }

.hero .logo-plate { margin-inline: auto; }


/* ── HERO METRICS ──────────────────────────────────────────── */
.hero-metrics {
  display: flex;
  gap: clamp(22px, 4vw, 46px);
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric b {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #fff;
  margin-bottom: 5px;
}

.metric span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #9db4d1;
}


/* ── PAGE HEADER (inner pages) ─────────────────────────────── */
.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--navy-deep) 100%);
  color: #fff;
  padding: clamp(54px, 7vw, 82px) 0 clamp(58px, 7vw, 86px);
  text-align: center;
}

.page-head .container { position: relative; }
.page-head p { color: #c7d4e6; margin-inline: auto; }


/* ── MOCKUP FRAME ──────────────────────────────────────────── */
.mockup {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.mockup-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}


/* ── FEATURE / TOOL GRID ───────────────────────────────────── */
.tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tools { grid-template-columns: 1fr; } }


/* ── CONNECTOR LOGOS ───────────────────────────────────────── */
.conn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conn-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, color 0.15s, transform 0.18s var(--ease);
}

.conn-item:hover {
  border-color: var(--orange);
  color: var(--navy);
  transform: translateY(-2px);
}


/* ── SERVICES BENTO ────────────────────────────────────────── */
/* Asymmetric grid: the lead service is a wide navy panel, the rest are
   light cards. Replaces an earlier numbered list that read as a table. */
.svc-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.svc-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}

/* Accent rule that wipes in from the left on hover. */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-card h3 { font-size: 16.5px; margin-top: 4px; }
.svc-card p  { font-size: 13.5px; color: var(--text-soft); }

/* ── Lead card ── */
.svc-card--lead {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  gap: 14px;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 58%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lg);
}

/* Same coloured wash as the hero, so the panel reads as brand furniture. */
.svc-card--lead::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(240, 122, 31, 0.20) 0, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(145, 102, 191, 0.24) 0, transparent 48%);
}

.svc-card--lead > * { position: relative; }

.svc-card--lead h3 { font-size: clamp(20px, 2.6vw, 27px); letter-spacing: -0.6px; }
.svc-card--lead p  { font-size: 15px; color: #c7d4e6; max-width: 44ch; }

.svc-card--lead .card-icon {
  width: 52px; height: 52px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-bottom: auto;
}

.svc-card--lead .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #dbe5f2;
}

/* The lead card fills two rows of the first two columns, so the last row
   would otherwise end on an empty cell. Widening the final card closes it. */
.svc-card--wide { grid-column: span 2; }

.svc-card--wide p { max-width: 62ch; }

@media (max-width: 980px) {
  .svc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card--lead { grid-column: span 2; grid-row: auto; }
  .svc-card--wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  .svc-bento { grid-template-columns: 1fr; }
  .svc-card--lead,
  .svc-card--wide { grid-column: auto; }
}


/* ── PROCESS ───────────────────────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

/* Rail linking the four step markers. */
.process::before {
  content: '';
  position: absolute;
  top: 23px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--orange), var(--lilac));
  opacity: 0.28;
}

.step { text-align: center; padding: 0 14px; position: relative; }

.step-marker {
  position: relative;
  z-index: 1;
  width: 46px; height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.step:hover .step-marker {
  transform: scale(1.1);
  border-color: var(--orange);
  color: var(--orange-dark);
  box-shadow: 0 6px 18px rgba(240, 122, 31, 0.25);
}

.step h3 { margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--text-soft); }

@media (max-width: 980px) {
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .process::before { display: none; }
}

@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }


/* ── PRICING ───────────────────────────────────────────────── */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.15s;
  height: 100%;
}

.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan.is-featured {
  border-color: var(--orange);
  border-width: 2px;
  box-shadow: 0 10px 30px rgba(240, 122, 31, 0.18);
}

.plan-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  white-space: nowrap;
}

.plan h3 { font-size: 18px; margin: 0 0 6px; }

.plan-price {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin: 14px 0 4px;
  line-height: 1;
}

.plan-price small { font-size: 12px; font-weight: 600; color: var(--text-mute); letter-spacing: 0; }

.plan-desc { font-size: 13.5px; color: var(--text-soft); margin-bottom: 18px; }

.plan .check-list { margin: 0 0 24px; flex: 1; }
.plan .check-list li { font-size: 14px; padding: 6px 0 6px 30px; }
.plan .check-list li::before { width: 18px; height: 18px; top: 8px; background-size: 11px; }

.plan .btn { width: 100%; margin-top: auto; }


/* ── FAQ ───────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 { font-size: 16px; margin-bottom: 8px; color: var(--navy); }
.faq-item p  { font-size: 14.5px; color: var(--text-soft); }


/* ── FOUNDER ───────────────────────────────────────────────── */
.founder {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: center;
}

/* Circular portrait with a rotating brand ring and two expanding halos. */
.founder-portrait {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1;
  margin-inline: auto;
}

/* Halos radiating outward. Capped at 1.35 so they stay inside the column. */
.founder-portrait::before,
.founder-portrait::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: founder-halo 3.8s ease-out infinite;
  pointer-events: none;
}

.founder-portrait::after { animation-delay: 1.9s; }

/* Conic brand gradient, revealed as a ring by the photo sitting on top. */
.founder-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--navy), var(--navy-light), var(--orange), var(--lilac), var(--navy)
  );
  animation: orbit-spin 16s linear infinite;
}

.founder-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  /* First shadow is the white gap that separates photo from ring. */
  box-shadow: 0 0 0 6px var(--surface), var(--shadow-lg);
}

/* The source is a full-body shot with the subject in the left third, so a
   plain centred crop would frame the wall instead of him. These values scale
   the image up and slide it so the circle lands on head and shoulders. */
.founder-photo img {
  position: absolute;
  /* The global reset caps images at max-width:100%, which would clamp this
     back to the circle's width and undo the crop. */
  max-width: none;
  width: 285%;
  height: auto;
  left: -33.5%;
  top: -16.8%;
}

.founder-chip {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(240, 122, 31, 0.4);
}

.founder-chip .dot { background: #fff; }

.founder-role {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .founder-portrait { max-width: 240px; }
}


/* ── TIMELINE ──────────────────────────────────────────────── */
.tl-item {
  position: relative;
  padding-left: 30px;
  padding-bottom: 30px;
  border-left: 2px solid var(--border);
}

.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -8px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--orange);
}

.tl-role    { font-size: 16px; font-weight: 800; color: var(--navy); }
.tl-company { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.tl-note    { font-size: 12.5px; color: var(--text-mute); }


/* ── CONTACT ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, color 0.15s, transform 0.2s var(--ease);
}

.contact-link:hover { border-color: var(--orange); color: var(--navy); transform: translateX(4px); }

.contact-link svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
}

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }


/* ── CTA BAND ──────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band p { margin: 14px auto 30px; color: var(--text-soft); font-size: 16.5px; max-width: 52ch; }


/* ── HERO RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: none; }
  .logo-plate { max-width: 420px; margin-inline: auto; }
}
