/* MCSI public landing — plain CSS, seal palette only. Loaded by landing/homepage.php. */

:root {
  --lp-font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lp-ink: #1d1d1f;
  --lp-muted: #5f5f66;
  --lp-soft: #6e6e73;
  --lp-cream: #FBFAF7;
  --lp-white: #FFFFFF;
  --lp-sand: #F4EFE7;
  --lp-line: #E4E1D8;
  --lp-green: #226D3E;
  --lp-green-deep: #1B5230;
  --lp-green-ink: #15271C;
  --lp-green-bright: #3FA76A;
  --lp-green-glow: #9BE4B6;
  --lp-mint: #EAF3EC;
  --lp-mint-2: #D6ECDC;
  --lp-orange: #F58827;
  --lp-red: #D32E2A;
  --lp-r-xl: 40px;
  --lp-r-lg: 28px;
  --lp-r-md: 20px;
  --lp-r-sm: 12px;
  --lp-wrap: 1120px;
  --lp-gutter: 20px;
  --lp-section: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--lp-font);
  color: var(--lp-ink);
  background: var(--lp-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; }
:focus-visible { outline: 2px solid var(--lp-green); outline-offset: 3px; border-radius: 4px; }

.lp-wrap { max-width: var(--lp-wrap); margin: 0 auto; padding: 0 var(--lp-gutter); }
.lp-section { padding: var(--lp-section) 0; }
.lp-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--lp-green); margin-bottom: 8px;
}
.lp-h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; }
.lp-lead { font-size: 16px; line-height: 1.5; color: var(--lp-muted); max-width: 62ch; margin-top: 10px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Green gradient — owner.com-style panel, in the seal's green */
.lp-gradient {
  position: relative;
  color: var(--lp-white);
  background:
    radial-gradient(70% 90% at 88% 30%, rgba(155, 228, 182, 0.9) 0%, rgba(155, 228, 182, 0) 60%),
    radial-gradient(60% 80% at 10% 90%, rgba(21, 39, 28, 0.9) 0%, rgba(21, 39, 28, 0) 60%),
    linear-gradient(108deg, #1B5230 0%, #226D3E 42%, #3FA76A 78%, #7FD39E 100%);
  isolation: isolate;
}
.lp-gradient::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0 2px, rgba(255, 255, 255, 0) 2px 110px);
  mix-blend-mode: soft-light;
}
.lp-gradient > * { position: relative; z-index: 1; }

/* Sheets: white sections whose rounded top overlaps the band above */
.lp-band { border-radius: var(--lp-r-xl) var(--lp-r-xl) 0 0; padding-bottom: calc(var(--lp-section) + var(--lp-r-xl)); }
.lp-sheet {
  position: relative; background: var(--lp-white);
  border-radius: var(--lp-r-xl) var(--lp-r-xl) 0 0;
  margin-top: calc(-1 * var(--lp-r-xl));
}

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 14.5px/1 var(--lp-font); color: var(--lp-ink); background: var(--lp-white);
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lp-btn:active { transform: scale(0.98); }
.lp-btn--dark { background: var(--lp-green-ink); color: var(--lp-white); }
.lp-btn--dark:hover { background: var(--lp-green-deep); }
.lp-btn--green { background: var(--lp-green); color: var(--lp-white); }
.lp-btn--green:hover { background: var(--lp-green-deep); }
.lp-btn--white { background: var(--lp-white); color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn--white:hover { border-color: var(--lp-ink); }
.lp-btn--ghost-light { background: rgba(255, 255, 255, 0.14); color: var(--lp-white); border-color: rgba(255, 255, 255, 0.4); }
.lp-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.26); }
.lp-btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.lp-btn .arrow { font-size: 15px; line-height: 1; transition: transform 0.2s ease; }
.lp-btn:hover .arrow { transform: translateX(3px); }
.lp-gradient .lp-btn:focus-visible, .lp-gradient a:focus-visible, .lp-gradient button:focus-visible { outline-color: var(--lp-white); }

/* Header */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.lp-header.is-scrolled { border-bottom-color: var(--lp-line); }
.lp-header__row { height: 56px; display: flex; align-items: center; gap: 12px; }
.lp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.lp-brand img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.lp-brand .brand-short { display: none; }
.lp-nav { display: flex; gap: 18px; margin: 0 auto; }
.lp-nav a { font-size: 14px; font-weight: 500; color: var(--lp-ink); padding: 6px 2px; }
.lp-nav a:hover { color: var(--lp-green); }
.lp-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-login { font-size: 14px; font-weight: 500; padding: 6px 8px; }
.lp-login:hover { color: var(--lp-green); }
.lp-menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--lp-line);
  background: var(--lp-white); color: var(--lp-ink); cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.lp-menu-btn .bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.lp-menu-btn .bars span { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.lp-menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.lp-menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lp-mobile-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--lp-white); border-bottom: 1px solid var(--lp-line);
  padding: 8px var(--lp-gutter) 20px; box-shadow: 0 24px 40px -30px rgba(21, 39, 28, 0.4);
}
.lp-mobile-nav.is-open { display: block; }
.lp-mobile-nav a.lp-mobile-nav__link {
  display: flex; align-items: center; min-height: 50px; font-size: 17px; font-weight: 600;
  border-bottom: 1px solid var(--lp-line); color: var(--lp-ink);
}
.lp-mobile-nav__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.lp-mobile-nav__actions .lp-btn { flex: 1 1 160px; }
.lp-mobile-nav__theme {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 50px; border-bottom: 1px solid var(--lp-line);
}
.lp-mobile-nav__theme-label { font-size: 17px; font-weight: 600; color: var(--lp-ink); }

/* Hero */
.lp-hero { padding: 32px 0 0; text-align: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--lp-muted);
}
.lp-eyebrow img { width: 22px; height: 22px; border-radius: 50%; }
.lp-eyebrow .sep { color: var(--lp-line); }
.lp-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.04em;
  max-width: 18ch; margin: 12px auto 0; text-wrap: balance;
}
.lp-hero__sub { font-size: 16px; line-height: 1.5; color: var(--lp-muted); max-width: 52ch; margin: 12px auto 0; }
.lp-status {
  display: inline-flex; align-items: center; margin: 16px 0 0;
  padding: 8px 16px; border-radius: 999px; background: var(--lp-white); border: 1px solid var(--lp-line);
  max-width: 100%;
}
.lp-status__text { font-size: 14.5px; color: var(--lp-muted); text-align: left; }
.lp-status__text b { color: var(--lp-ink); font-weight: 600; }
.lp-hero__apply { margin-top: 16px; }
.lp-header .mcsi-theme-picker--symbols { flex: none; }
.lp-header .mcsi-theme-picker--symbols .mcsi-seg { padding: 2px; gap: 0; }
.lp-header .mcsi-theme-picker--symbols .mcsi-seg__btn {
  width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; flex: none;
}
.lp-header .mcsi-theme-picker__mark { display: block; }
.lp-header .lp-mobile-nav__theme .mcsi-theme-picker--symbols .mcsi-seg__btn {
  width: 44px; min-width: 44px; height: 44px; min-height: 44px;
}
.lp-hero__panel {
  position: relative; margin-top: 24px; height: auto;
  border-radius: var(--lp-r-lg); overflow: hidden;
  padding: 36px 36px 0;
}
.lp-hero__photo {
  position: relative; width: min(100%, 860px); margin: 0 auto;
  border-radius: 28px 28px 0 0;
  border: 6px solid rgba(255, 255, 255, 0.55); border-bottom: 0;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden; background: var(--lp-green-ink);
}
.lp-hero__photo img { width: 100%; height: auto; display: block; }
.lp-hero__tag {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.92); color: var(--lp-ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 36px -20px rgba(21, 39, 28, 0.5); text-align: left;
}
.lp-hero__tag img { width: 34px; height: 34px; border-radius: 50%; }
.lp-hero__tag b { display: block; font-size: 14px; }
.lp-hero__tag span { font-size: 12.5px; color: var(--lp-muted); }

/* Proof strip — light cards that drift, like a case-study row */
.lp-facts { padding: 36px 0 4px; }
.lp-facts h2 {
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; text-align: center;
  margin: 0 auto 28px; max-width: 18ch;
}
.lp-marquee { overflow: hidden; }
.lp-marquee__track {
  display: flex; gap: 14px; width: max-content; padding: 4px 0 12px;
  animation: lp-marquee 42s linear infinite;
}
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
.lp-fact {
  flex: 0 0 280px; min-height: 168px; border-radius: 20px; padding: 22px 22px 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--lp-white); color: var(--lp-ink);
  border: 1px solid var(--lp-line);
  box-shadow: 0 18px 40px -28px rgba(21, 39, 28, 0.35);
}
.lp-fact__big { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--lp-green); }
.lp-fact__label { font-size: 16px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; }
.lp-fact__meta { font-size: 13px; color: var(--lp-muted); margin-top: 6px; line-height: 1.4; }
@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Academics tabs */
.lp-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--lp-line); margin-top: 36px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab {
  flex: 1 0 auto; appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 14px 12px; font: 500 15px/1.2 var(--lp-font); color: var(--lp-soft); cursor: pointer; text-align: center;
  transition: color 0.2s ease, border-color 0.2s ease; border-radius: 0;
}
.lp-tab:hover { color: var(--lp-ink); }
.lp-tab[aria-selected="true"] { color: var(--lp-ink); border-bottom-color: var(--lp-ink); font-weight: 600; }
.lp-panel { display: none; margin-top: 24px; }
.lp-panel.is-active { display: block; }
.lp-level {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; min-height: 440px;
  border-radius: var(--lp-r-lg); padding: 44px; align-items: end;
}
.lp-level--mint { background: linear-gradient(160deg, #F6F9F6 0%, #D6ECDC 100%); color: var(--lp-ink); }
.lp-level--sand { background: linear-gradient(160deg, #FBF8F2 0%, #F4EFE7 100%); color: var(--lp-ink); }
.lp-level--deep { background: linear-gradient(140deg, #1B5230 0%, #15271C 100%); color: var(--lp-white); }
.lp-level__copy .lp-kicker { color: inherit; opacity: 0.75; margin-bottom: 10px; }
.lp-level__copy h3 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; margin-bottom: 12px; }
.lp-level__copy p { font-size: 16px; line-height: 1.55; max-width: 44ch; opacity: 0.92; }
.lp-level__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.lp-level__list li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.lp-level__list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.lp-level__visual { align-self: center; justify-self: center; }
.lp-badge-card {
  background: rgba(255, 255, 255, 0.94); color: var(--lp-ink); border-radius: 24px; padding: 30px 40px; text-align: center;
  box-shadow: 0 34px 70px -34px rgba(21, 39, 28, 0.5); min-width: 220px;
}
.lp-badge-card .big { font-size: clamp(60px, 7vw, 92px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.95; color: var(--lp-green); }
.lp-badge-card .small { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-soft); margin-top: 10px; font-weight: 600; }

/* Values band */
.lp-band__head { text-align: center; max-width: 760px; margin: 0 auto; }
.lp-band__head .lp-kicker { color: var(--lp-green-glow); }
.lp-band__head h2 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -0.035em; line-height: 1.04; }
.lp-band__head p { font-size: 16.5px; line-height: 1.65; opacity: 0.94; margin-top: 18px; }
.lp-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.lp-value { background: var(--lp-white); color: var(--lp-ink); border-radius: var(--lp-r-md); padding: 28px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.5); }
.lp-value__mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--lp-white); }
.lp-value__mark--truth { background: var(--lp-orange); color: var(--lp-ink); }
.lp-value__mark--virtue { background: var(--lp-green); }
.lp-value__mark--excellence { background: var(--lp-red); }
.lp-value h3 { font-size: 21px; margin: 18px 0 8px; }
.lp-value p { color: var(--lp-muted); font-size: 15px; line-height: 1.55; }

/* Admissions bento */
.lp-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.lp-bento__wide {
  grid-column: 1 / -1; position: relative; min-height: 0; border-radius: var(--lp-r-lg); overflow: hidden;
  color: var(--lp-ink); display: flex; flex-direction: column; padding: 0; background: var(--lp-white);
  border: 1px solid var(--lp-line);
}
.lp-bento__wide > picture { display: block; }
.lp-bento__wide > picture img { width: 100%; height: auto; display: block; }
.lp-bento__wide::after { display: none; }
.lp-bento__copy { position: relative; z-index: 1; max-width: 62ch; padding: 28px 32px 32px; }
.lp-bento__copy h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.015em; }
.lp-bento__copy p { font-size: 15.5px; line-height: 1.55; color: var(--lp-muted); }
.lp-bento__half { border-radius: var(--lp-r-lg); padding: 22px; min-height: 0; display: flex; flex-direction: column; }
.lp-bento__half h3 { font-size: 21px; letter-spacing: -0.015em; }
.lp-bento__half p { font-size: 15px; line-height: 1.55; margin-top: 10px; }
.lp-bento__half--sand { background: var(--lp-sand); color: var(--lp-ink); }
.lp-bento__half--sand p { color: var(--lp-muted); }
.lp-bento__half .lp-btn { align-self: flex-start; margin-top: auto; }
.lp-bento__half--sand p, .lp-bento__half--sand .lp-steps { margin-bottom: 24px; }
.lp-doclist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-doclist li {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--lp-r-sm);
  padding: 12px 14px; font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: center;
}
.lp-doclist li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green-glow); }
.lp-fineprint { font-size: 13px; opacity: 0.85; margin-top: 16px; line-height: 1.5; }
.lp-steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.lp-steps li::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--lp-green); color: var(--lp-white);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.lp-steps b { display: block; font-size: 15.5px; }
.lp-steps span { display: block; font-size: 14px; color: var(--lp-muted); line-height: 1.5; margin-top: 2px; }

/* FAQ — heading left, rows right */
.lp-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.lp-split__aside { position: sticky; top: 96px; }
.lp-split__aside h2 { font-size: clamp(32px, 4.2vw, 46px); letter-spacing: -0.035em; line-height: 1.04; }
.lp-split__aside .lp-lead { font-size: 16px; }
.lp-seal-note { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.lp-seal-note img { width: 84px; height: 84px; border-radius: 50%; }
.lp-seal-note b { display: block; font-size: 15px; }
.lp-seal-note span { font-size: 13px; color: var(--lp-muted); }
.lp-faq { border-top: 1px solid var(--lp-line); }
.lp-faq__item { border-bottom: 1px solid var(--lp-line); }
.lp-faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0;
  background: none; border: 0; text-align: left; font: 600 17px/1.35 var(--lp-font); color: var(--lp-ink); cursor: pointer;
}
.lp-faq__q:hover { color: var(--lp-green); }
.lp-faq__q .chev {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lp-line); color: var(--lp-ink);
  display: grid; place-items: center; font-size: 18px; font-weight: 400; line-height: 1; transition: transform 0.25s ease, background 0.2s ease;
}
.lp-faq__q[aria-expanded="true"] .chev { transform: rotate(45deg); background: var(--lp-mint); }
.lp-faq__a { display: none; padding: 0 44px 22px 0; color: var(--lp-muted); font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.lp-faq__a.is-open { display: block; }

/* Contact cards + calendar banner */
.lp-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.lp-contact {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; padding-right: 64px; border-radius: var(--lp-r-md);
  background: var(--lp-sand); color: var(--lp-ink); min-height: 0; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lp-contact:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(21, 39, 28, 0.45); border-color: var(--lp-line); }
.lp-contact__k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-green); font-weight: 700; }
.lp-contact__v { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lp-contact__h { font-size: 13.5px; color: var(--lp-muted); margin-top: auto; }
.lp-contact__arrow { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-white); display: grid; place-items: center; font-size: 15px; color: var(--lp-green); }
.lp-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px;
  padding: 20px 24px; border-radius: var(--lp-r-md); background: var(--lp-mint-2); color: var(--lp-ink);
}
.lp-banner b { font-size: 16px; }
.lp-banner p { margin-top: 4px; font-size: 14px; color: var(--lp-muted); line-height: 1.5; }
.lp-banner__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-white); display: grid; place-items: center; color: var(--lp-green); }

/* Closing band */
.lp-cta { margin-top: var(--lp-section); border-radius: var(--lp-r-xl) var(--lp-r-xl) 0 0; overflow: hidden; }
.lp-cta__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; padding-top: 36px; padding-bottom: 28px; min-height: 0; }
.lp-cta h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.lp-cta p { font-size: 15.5px; line-height: 1.5; opacity: 0.94; margin-top: 10px; max-width: 48ch; }
.lp-cta__art { align-self: end; justify-self: end; width: 100%; max-width: 540px; margin-bottom: -2px; }
.lp-cta__art img {
  width: 100%; height: auto; border-radius: 24px 24px 0 0;
  border: 6px solid rgba(255, 255, 255, 0.55); border-bottom: 0;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

/* Footer */
.lp-footer { padding: 32px 0 20px; }
.lp-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-footer__brand { display: flex; align-items: center; gap: 12px; }
.lp-footer__brand img { width: 44px; height: 44px; border-radius: 50%; }
.lp-footer__brand b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.lp-footer__brand span { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-green); font-weight: 700; }
.lp-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.lp-footer__cols h4 { font-size: 12.5px; color: var(--lp-soft); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.02em; }
.lp-footer__cols a, .lp-footer__cols span { display: block; font-size: 14.5px; color: var(--lp-ink); padding: 6px 0; overflow-wrap: anywhere; }
.lp-footer__cols a:hover { color: var(--lp-green); }
.lp-footer__legal {
  border-top: 1px solid var(--lp-line); margin-top: 44px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--lp-soft);
}

/* Reveal on scroll (hidden state only when JS says so) */
html[data-motion="1"] .lp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
html[data-motion="1"] .lp-reveal.is-in { opacity: 1; transform: none; }

/* Floating: music */
.lp-fab {
  position: fixed; z-index: 80; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lp-fab:active { transform: scale(0.94); }
#lp-music { right: 22px; bottom: 22px; background: var(--lp-green); color: var(--lp-white); font-size: 18px; box-shadow: 0 12px 28px -10px rgba(21, 39, 28, 0.6); }
#lp-music:hover { background: var(--lp-green-deep); }
#lp-music .ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lp-green-glow); opacity: 0; pointer-events: none; }
#lp-music .bars { display: none; align-items: flex-end; gap: 3px; height: 20px; }
#lp-music .bars span { width: 3px; height: 20px; border-radius: 2px; background: var(--lp-white); transform: scaleY(0.28); transform-origin: 50% 100%; }
#lp-music .bars span:nth-child(3) { background: var(--lp-green-glow); }
#lp-music[data-playing="1"] .note { display: none; }
#lp-music[data-playing="1"] .bars { display: flex; }
#lp-music[data-playing="1"] { animation: lp-pulse 1.9s ease-in-out infinite; }
#lp-music[data-playing="1"] .ripple { animation: lp-ripple 1.9s ease-out infinite; }
#lp-music[data-playing="1"] .ripple:nth-of-type(2) { animation-delay: 0.95s; }
#lp-music[data-playing="1"] .bars span { animation: lp-bar 0.62s ease-in-out infinite; }
#lp-music[data-playing="1"] .bars span:nth-child(2) { animation-duration: 0.44s; animation-delay: 0.09s; }
#lp-music[data-playing="1"] .bars span:nth-child(3) { animation-duration: 0.78s; animation-delay: 0.18s; }
#lp-music[data-playing="1"] .bars span:nth-child(4) { animation-duration: 0.52s; animation-delay: 0.27s; }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes lp-bar { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes lp-ripple { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2.05); opacity: 0; } }

/* Family portal preview */
.lp-portal { background: var(--lp-white); padding-top: 28px; }
.lp-portal-demo { margin-top: 40px; }
.lp-portal__roles {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px;
}
.lp-portal__tour {
  text-align: center; font-size: 13.5px; color: var(--lp-muted); margin: 0 0 20px;
  min-height: 1.3em;
}
.lp-portal__tour.is-off { color: var(--lp-green); }
.lp-portal__phones {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start;
  max-width: 390px; margin-left: auto; margin-right: auto;
}
.lp-portal__phone { margin: 0; text-align: center; }
.lp-portal__frame {
  position: relative; max-width: 390px; margin: 0 auto; border-radius: 36px; padding: 12px;
  background: linear-gradient(160deg, var(--lp-ink) 0%, #3a3a3c 100%);
  box-shadow: 0 40px 80px -24px rgba(21, 39, 28, 0.35);
}
.lp-portal__frame::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.22);
}
.lp-portal__phone figcaption {
  margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--lp-ink);
}
.lp-portal__note {
  font-size: 13.5px; color: var(--lp-muted); margin-top: 28px; max-width: 56ch;
}
.lp-portal__roles .lp-btn { margin-top: 0; }

/* The phone window shows the real family pages (portal/demo.php). */
.lp-portal-phone {
  display: block;
  width: 100%;
  height: 44rem;
  max-height: min(44rem, 78vh);
  border: 0;
  border-radius: 26px;
  background: var(--mcsi-portal-bg, #f5f5f7);
}

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-motion="1"] .lp-reveal { opacity: 1; transform: none; transition: none; }
  #lp-music, #lp-music .ripple, #lp-music .bars span, .lp-marquee__track { animation: none !important; }
  .lp-fact[aria-hidden="true"] { display: none; }
  .lp-btn, .lp-contact, .lp-faq__q .chev, .lp-tab { transition: none; }
}

/* Responsive */
@media (min-width: 901px) {
  .lp-mobile-nav__theme { display: none; }
}
@media (max-width: 1000px) {
  .lp-nav { gap: 20px; }
}
@media (max-width: 900px) {
  .lp-portal__phones { max-width: 360px; }
  :root { --lp-section: 36px; --lp-r-xl: 24px; }
  .lp-nav, .lp-login { display: none; }
  .lp-header__actions > .mcsi-theme-picker { display: none; }
  .lp-menu-btn { display: inline-flex; }
  .lp-brand .brand-full { display: none; }
  .lp-brand .brand-short { display: inline; }
  .lp-brand { font-size: 13.5px; line-height: 1.15; }
  .lp-header__row { height: 52px; }
  .lp-hero { padding-top: 20px; }
  .lp-hero__sub { font-size: 16.5px; }
  .lp-status { padding: 8px 14px; text-align: center; }
  .lp-status__text { text-align: center; }
  .lp-hero__panel { height: auto; border-radius: var(--lp-r-md); padding: 20px 16px 0; }
  .lp-hero__photo { width: 100%; border-radius: 20px 20px 0 0; }
  .lp-hero__tag { left: 14px; bottom: 14px; padding: 10px 12px; }
  .lp-facts { padding-top: 28px; }
  .lp-marquee { overflow-x: auto; scrollbar-width: none; }
  .lp-marquee::-webkit-scrollbar { display: none; }
  .lp-marquee__track { animation: none; }
  .lp-fact[aria-hidden="true"] { display: none; }
  .lp-level { grid-template-columns: 1fr; padding: 28px; min-height: 0; gap: 24px; }
  .lp-level__visual { order: -1; justify-self: start; }
  .lp-badge-card { padding: 20px 26px; min-width: 0; }
  .lp-values { grid-template-columns: 1fr; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-bento__wide { min-height: 0; padding: 0; }
  .lp-bento__copy { padding: 22px 24px 26px; }
  .lp-bento__half { min-height: 0; padding: 26px; }
  .lp-split { grid-template-columns: 1fr; gap: 32px; }
  .lp-split__aside { position: static; }
  .lp-seal-note { margin-top: 24px; }
  .lp-contact-grid { grid-template-columns: 1fr 1fr; }
  .lp-cta__inner { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; padding-bottom: 8px; min-height: 0; }
  .lp-cta__art { justify-self: center; max-width: 460px; }
  .lp-footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .lp-footer { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .lp-contact-grid { grid-template-columns: 1fr; }
  .lp-contact { min-height: 0; }
  .lp-contact__h { margin-top: 4px; }
  .lp-footer__legal { flex-direction: column; }
  .lp-tab { padding: 12px 10px; font-size: 14px; }
  .lp-fact__big { font-size: 38px; }
}

@media screen {
  html[data-mcsi-theme="dark"] {
    color-scheme: dark;
    --lp-ink: #f5f5f7;
    --lp-muted: #b4b4bb;
    --lp-soft: #98989d;
    --lp-cream: #121214;
    --lp-white: #1c1c1e;
    --lp-sand: #2c2c2e;
    --lp-line: rgba(245, 245, 247, 0.16);
    --lp-mint: #1a2e22;
    --lp-mint-2: #24382c;
    --lp-green-glow: #6dcb8a;
  }
  html[data-mcsi-theme="dark"] .lp-header {
    background: rgba(18, 18, 20, 0.88);
  }
  html[data-mcsi-theme="dark"] .lp-level--mint {
    background: linear-gradient(160deg, #1a2e22 0%, #24382c 100%);
  }
  html[data-mcsi-theme="dark"] .lp-level--sand {
    background: linear-gradient(160deg, #2c2c2e 0%, #1c1c1e 100%);
  }
  html[data-mcsi-theme="dark"] .lp-badge-card {
    background: rgba(28, 28, 30, 0.94);
  }
  html[data-mcsi-theme="dark"] .lp-value__mark--truth {
    color: #1d1d1f;
  }
  html[data-mcsi-theme="dark"] .lp-btn--dark,
  html[data-mcsi-theme="dark"] .lp-btn--green,
  html[data-mcsi-theme="dark"] .lp-btn--ghost-light,
  html[data-mcsi-theme="dark"] .lp-gradient,
  html[data-mcsi-theme="dark"] .lp-fact,
  html[data-mcsi-theme="dark"] .lp-level--deep,
  html[data-mcsi-theme="dark"] .lp-value__mark,
  html[data-mcsi-theme="dark"] #lp-music {
    color: #fff;
  }
  html[data-mcsi-theme="dark"] #lp-music .bars span {
    background: #fff;
  }
}

