/* Logic Point Solutions site layout
   Extends lps-theme.css tokens + lps-motion.css.
   Palette, typography, and motion follow the LPS brand guidelines. */

body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------- Inline arrow icons ----------
   CSS-drawn SVG arrows (masked, inherit currentColor) so they never fall back
   to the OS emoji font on mobile. Replaces the old → / ↗ text glyphs. */
:root {
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.lps-button__arrow, .chev, .row-arrow, .cta-arrow {
  display: inline-block; flex: none; vertical-align: middle;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.chev, .row-arrow { width: 1.1em; height: 1.1em; }
.cta-arrow { width: 1em; height: 1em; }
.lps-button__arrow { width: 1em; height: 1em; } /* theme sets font-size:1.1em on this span */
.lps-button__arrow, .chev, .row-arrow, .cta-arrow {
  -webkit-mask-image: var(--icon-arrow-right); mask-image: var(--icon-arrow-right);
}

/* Tighter vertical rhythm than the base theme */
.lps-section { padding: clamp(44px, 5vw, 78px) 0; }
.lps-hero { min-height: auto; }
.hero-inner { padding: clamp(40px, 5vw, 72px) 0; }

/* Shared node-grid backdrop for large surfaces (3-5% opacity) */
.node-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(6,27,72,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6,27,72,.05) 1px, transparent 1px);
  background-size: clamp(64px, 8vw, 108px) clamp(64px, 8vw, 108px);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--lps-border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  width: min(calc(100% - 40px), var(--lps-content));
  margin: 0 auto; padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 56px; width: auto; display: block; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { color: var(--lps-navy); font-weight: 600; font-size: 15px; }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 15px; margin-left: 4px; }

.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.lps-hero { position: relative; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 em { color: var(--lps-blue); font-style: normal; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--lps-border); box-shadow: var(--lps-shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--lps-navy);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lps-blue); }

/* Hero visual: deployment node panel */
.hero-visual { position: relative; }
.stage {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--lps-border); border-radius: var(--lps-radius-lg);
  box-shadow: var(--lps-shadow-md); padding: 26px; overflow: hidden;
}
.stage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stage-head span { color: var(--lps-slate); font-size: 12px; letter-spacing: .14em; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots b { width: 9px; height: 9px; border-radius: 50%; background: var(--lps-border); }
.stage-dots b:first-child { background: var(--lps-cyan); }
.flow { display: grid; gap: 14px; }
.flow-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: var(--lps-radius-md);
  background: var(--lps-mist); border: 1px solid var(--lps-border);
}
.flow-row .dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  background: var(--lps-blue);
}
.flow-row.is-navy .dot { background: var(--lps-navy); }
.flow-row.is-signal .dot { background: var(--lps-signal); }
.flow-row.is-cyan .dot { background: var(--lps-cyan); color: var(--lps-navy); }
.flow-row strong { display: block; color: var(--lps-navy); font-size: 15px; }
.flow-row span { color: var(--lps-slate); font-size: 13px; }
.flow-row .chev { margin-left: auto; color: var(--lps-blue); font-weight: 700; }
.hero-visual::before {
  content: ''; position: absolute; width: 78%; height: 78%; right: -6%; top: -10%;
  background: radial-gradient(circle, rgba(90,185,231,.22), transparent 68%);
  filter: blur(4px); z-index: 0;
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--lps-border); border-bottom: 1px solid var(--lps-border);
  background: #fff;
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px;
  padding: 22px 0;
}
.trust-inner > p { margin: 0; color: var(--lps-slate); font-size: 14px; font-weight: 600; }
.trust-list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-left: auto; }
.trust-list span { color: var(--lps-navy); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.trust-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--lps-cyan); }

/* ---------- Section headings ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 6px; }
.split-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(32px, 4vw, 54px);
}
.split-head p.lead { margin: 0; max-width: 420px; }

/* ---------- Grids ---------- */
.grid-4 { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Solution / sector card internals */
.lps-card .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lps-card p { color: #47566d; margin-bottom: 18px; }

/* Solution cards: fully clickable, CTA row at the bottom */
.solution-card { padding: 28px 26px; min-height: 0; text-decoration: none; color: inherit; }
.solution-card .card-head { margin-bottom: 14px; }
.solution-card h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.solution-card p { color: #3f4f68; }
.card-cta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lps-border);
  color: var(--lps-blue); font-weight: 700; font-size: 13px;
}
/* Align description/tag/CTA rows across cards whose titles wrap differently (4-col only) */
@media (min-width: 941px) { .solution-card h3 { min-height: 2.5em; } }
/* Sector cards have no tags row, so the CTA itself anchors to the card bottom */
.sector .card-cta { margin-top: auto; }
/* Narrow 4-col widths: reserve two CTA lines so tag/CTA rows stay aligned if a label wraps */
@media (min-width: 941px) and (max-width: 1179px) { .grid-4 .card-cta { min-height: 51px; } }
@media (prefers-reduced-motion: no-preference) {
  .solution-card, .cta-arrow { transition-duration: 200ms; transition-timing-function: var(--lps-ease); }
  .solution-card { transition-property: transform, box-shadow, border-color; }
  .cta-arrow { transition-property: transform; }
  .solution-card:hover, .solution-card:focus-visible { transform: translateY(-4px); border-color: rgba(9,77,186,.35); box-shadow: var(--lps-shadow-md); }
  .solution-card:hover .cta-arrow, .solution-card:focus-visible .cta-arrow { transform: translateX(4px); }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span {
  font-size: 12px; font-weight: 600; color: var(--lps-navy);
  padding: 5px 11px; border-radius: 999px; background: var(--lps-mist); border: 1px solid var(--lps-border);
}
.lps-card { display: flex; flex-direction: column; }

/* Sector card */
.sector .num { color: var(--lps-blue); }
.sector .label {
  display: inline-block; margin: 0 0 10px; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lps-signal);
}

/* ---------- Partners ---------- */
.partners { text-align: center; }
.partners p { color: var(--lps-slate); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.partner-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 40px;
}
.partner-row span { color: #8493a8; font-weight: 800; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .02em; }

/* ---------- Approach / process ---------- */
.approach-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.approach-grid .lps-lead { max-width: 560px; }
.diff { display: grid; gap: 2px; margin-top: 30px; }
.diff > div { padding: 18px 0; border-top: 1px solid var(--lps-border); }
.diff strong { display: flex; align-items: center; gap: 10px; color: var(--lps-navy); font-size: 17px; }
.diff strong::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lps-blue); flex: none; }
.diff span { display: block; color: #47566d; margin-top: 4px; padding-left: 19px; }

.process {
  background: var(--lps-navy); color: #fff; border-radius: var(--lps-radius-lg);
  padding: clamp(24px, 2.6vw, 34px) clamp(26px, 3vw, 40px); position: relative; overflow: hidden;
}
.process > .mono { color: var(--lps-cyan); letter-spacing: .16em; font-size: 12px; }
.process-step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-step > b {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(90,185,231,.16); color: var(--lps-cyan); font-family: 'IBM Plex Mono', monospace; font-weight: 600;
}
.process-step h3 { color: #fff; margin: 2px 0 4px; font-size: 19px; }
.process-step p { color: rgba(255,255,255,.8); margin: 0; font-size: 15px; }

/* ---------- Conversion CTA band ---------- */
.cta-band { padding-top: 0; }
.cta-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta-band .lps-lead { max-width: 600px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) {
  .cta-actions { flex-direction: column; }
  .cta-actions .lps-button { width: 100%; }
}

/* ---------- Contact ---------- */
.contact-section { background: var(--lps-navy); position: relative; overflow: hidden; }
.contact-section .node-grid { mask-image: radial-gradient(circle at 20% 40%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 20% 40%, #000, transparent 70%); opacity: .5; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 60px); align-items: center; }
.contact-inner h2 { color: #fff; }
.contact-inner .eyebrow-light { color: var(--lps-cyan); }
.contact-inner > div p { color: rgba(255,255,255,.76); }
.contact-card {
  display: block; text-decoration: none; background: #fff; color: var(--lps-navy);
  border-radius: var(--lps-radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--lps-shadow-md);
  border-top: 4px solid var(--lps-blue);
}
.contact-card .mono { color: var(--lps-blue); font-size: 12px; letter-spacing: .14em; }
.contact-card strong { display: block; font-family: 'Inter Display', Inter, sans-serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 12px 0 24px; }
.contact-card .row { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--lps-border); font-weight: 700; color: var(--lps-blue); }

.eyebrow-light { display: inline-flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--lps-cyan); }
.eyebrow-light::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--lps-cyan), var(--lps-signal)); }

/* ---------- Footer ---------- */
.lps-footer { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.72); max-width: 280px; }
.footer-col span.h { display: block; color: var(--lps-cyan); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.82); text-decoration: none; margin-bottom: 10px; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.6); font-size: 14px;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--lps-mist); border-bottom: 1px solid var(--lps-border); }
.legal-hero .lps-container { padding: clamp(40px, 6vw, 72px) 0; }
.legal-hero .mono { color: var(--lps-blue); letter-spacing: .16em; font-size: 12px; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 14px 0 12px; }
.legal-hero .updated { color: var(--lps-slate); font-size: 15px; }
.legal-body { padding: clamp(48px, 6vw, 84px) 0; }
.legal-wrap { max-width: 820px; }
.legal-note {
  background: #fff; border: 1px solid var(--lps-border); border-left: 4px solid var(--lps-signal);
  border-radius: var(--lps-radius-md); padding: 18px 20px; margin-bottom: 40px; color: #47566d; font-size: 15px;
}
.legal-body h2 {
  font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; padding-top: 10px;
  display: flex; gap: 12px; align-items: baseline;
}
.legal-body h2 .n { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--lps-blue); flex: none; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 19px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { color: #3f4f68; font-size: 16px; line-height: 1.7; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--lps-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--lps-navy); }
.legal-toc {
  background: var(--lps-mist); border: 1px solid var(--lps-border); border-radius: var(--lps-radius-md);
  padding: 22px 24px; margin-bottom: 44px;
}
.legal-toc span.h { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--lps-slate); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--lps-navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.legal-toc a:hover { color: var(--lps-blue); }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .approach-grid, .contact-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-nav, .header-cta { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .mobile-menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--lps-border); display: grid; place-content: center; gap: 5px; background: #fff;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: block; width: 20px; height: 2px; background: var(--lps-navy); }
  .mobile-menu[open] .m-nav {
    position: absolute; left: 20px; right: 20px; margin-top: 12px; z-index: 70;
    background: #fff; border: 1px solid var(--lps-border); border-radius: var(--lps-radius-md);
    box-shadow: var(--lps-shadow-md); padding: 10px;
  }
  .mobile-menu .m-nav a { display: block; padding: 12px 14px; color: var(--lps-navy); font-weight: 600; text-decoration: none; border-radius: 8px; }
  .mobile-menu .m-nav a:hover { background: var(--lps-mist); }
  .mobile-menu .m-nav .button-row { padding: 8px 6px 4px; }
}
@media (max-width: 520px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .trust-list { margin-left: 0; }
  .hero-visual::before { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Contact form (merged) ---------- */
.contact-direct { margin-top: 18px; color: rgba(255,255,255,.76); font-size: 15px; }
.contact-direct a { color: #fff; font-weight: 600; text-decoration-color: rgba(90,185,231,.6); text-underline-offset: 3px; }
.contact-form, .form-success {
  background: #fff; color: var(--lps-navy);
  border-radius: var(--lps-radius-lg); border-top: 4px solid var(--lps-blue);
  box-shadow: var(--lps-shadow-md); padding: clamp(24px, 3vw, 36px);
}
.form-eyebrow { display: block; color: var(--lps-blue); font-size: 12px; letter-spacing: .14em; margin-bottom: 18px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--lps-navy); margin-bottom: 6px; }
.form-field .opt { color: var(--lps-slate); font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--lps-ink);
  background: var(--lps-mist); border: 1px solid var(--lps-border); border-radius: 10px;
  transition: border-color .18s var(--lps-ease), box-shadow .18s var(--lps-ease), background .18s var(--lps-ease);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; background: #fff; border-color: var(--lps-blue); box-shadow: 0 0 0 3px rgba(9,77,186,.15);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa7b8; }
.btn-full { width: 100%; margin-top: 4px; }
.form-note { margin: 12px 0 0; font-size: 13px; color: var(--lps-slate); }
.hidden-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success strong {
  display: block; font-family: 'Inter Display', Inter, sans-serif; font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 10px;
}
.form-success p { color: var(--lps-slate); margin: 0; }
