/* EnviSafe landing page. Loaded after style.css, only by index.php. */

.lp { overflow-x: hidden; }
.lp-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Nav ---------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Opaque enough that muted nav text keeps 4.5:1 while it scrolls over the black band. */
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.lp-nav.is-scrolled { border-bottom-color: var(--line); }
.lp-nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.lp-brand:hover { color: var(--ink); }
.lp-mark { width: 10px; height: 10px; background: var(--accent); flex: none; }

.lp-links { display: flex; gap: 28px; margin-left: auto; }
.lp-links a,
.lp-login {
  padding-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.18s var(--ease), background-size 0.3s var(--ease);
}
.lp-links a:hover,
.lp-login:hover { color: var(--ink); background-size: 100% 1px; }
.lp-actions { display: flex; align-items: center; gap: 20px; }

.lp-flash { padding-top: 20px; }

/* ---------- Hero ---------- */

.lp-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: 72px;
}

.lp-eyebrow {
  grid-column: 1 / 9;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-eyebrow span + span::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--ink-3);
}

.lp-title {
  grid-column: 1 / 11;
  grid-row: 2;
  position: relative;
  z-index: 2;
  margin: 28px 0 0;
  font-size: clamp(3.6rem, 10.4vw, 9.6rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.lp-title .lp-indent { display: block; padding-left: 1.05em; }
.lp-dot { color: var(--accent); }

.lp-hero-copy { grid-column: 2 / 7; grid-row: 3; margin-top: 52px; }
.lp-lead { max-width: 44ch; margin-bottom: 30px; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }

.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.lp-arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .lp-arrow { transform: translateX(3px); }
.lp-textlink {
  padding-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.lp-textlink:hover { color: var(--accent); }

/* The status card is the real student-facing page, pulled over an orange "door" so the glass has
   something to frost. */
.lp-specimen {
  grid-column: 8 / 13;
  grid-row: 2 / 4;
  align-self: end;
  position: relative;
  z-index: 3;
  margin: 0;
  padding-top: 60px;
}
.lp-door {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: calc(100% - 44px);
  background: var(--accent);
}
.lp-status {
  position: relative;
  width: 100%;
  margin-left: -14%;
  padding: 26px 26px 22px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.lp-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.lp-tag {
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.lp-status-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.lp-status-meta { margin: 18px 0 0; }
.lp-status-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.lp-status-meta dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-status-meta dd { margin: 0; color: var(--ink); text-align: right; }
.lp-status .handled-by { margin-top: 14px; background: rgba(255, 255, 255, 0.55); }
/* Text that sits over the frosted orange needs the darker ink to hold AA contrast. */
.lp-status .lp-tag,
.lp-status .handled-by .label { color: var(--ink-2); }
.lp-status .badge-investigating { background: #fbf1ec; }
.lp-caption {
  margin: 14px 0 0 -14%;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lp-facts {
  grid-column: 1 / 13;
  grid-row: 4;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.3fr;
  margin: 96px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.lp-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.lp-facts li:first-child { padding-left: 0; border-left: 0; }
.lp-fact-k { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.lp-facts li span:last-child { font-size: 0.9rem; color: var(--ink-3); }

/* ---------- Shared section parts ---------- */

.lp-section { padding-top: clamp(104px, 12vw, 168px); padding-bottom: clamp(104px, 12vw, 168px); }
.lp-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-label::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex: none; }
.lp-h2-xl {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

/* ---------- How it works ---------- */

.lp-how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lp-how-head { grid-column: 1 / 5; align-self: start; position: sticky; top: 112px; }
.lp-how-head h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 0.94; letter-spacing: -0.025em; }
.lp-how-head p { max-width: 30ch; color: var(--ink-3); }

.lp-steps { grid-column: 6 / 13; margin: 0; padding: 0; list-style: none; }
.lp-steps li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.lp-steps li:last-child { border-bottom: 1px solid var(--line); }
.lp-steps li:nth-child(2) { margin-left: 6%; }
.lp-steps li:nth-child(3) { margin-left: 12%; }
.lp-steps li:nth-child(4) { margin-left: 18%; }
.lp-step-n {
  font-family: var(--font-display);
  font-size: 3.3rem;
  line-height: 0.9;
  color: var(--ink-3);
  font-variant-numeric: lining-nums;
  transition: color 0.3s var(--ease);
}
.lp-steps li:hover .lp-step-n { color: var(--accent); }
.lp-steps h3 { margin: 4px 0 8px; font-size: 1.75rem; font-weight: 600; }
.lp-steps p { max-width: 46ch; margin: 0; color: var(--ink-3); }

/* ---------- Students ---------- */

.lp-band--felt { background: var(--felt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-students { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lp-students-main { grid-column: 1 / 8; }
.lp-students-main .lp-h2-xl { max-width: 12ch; }
.lp-students-main > p { max-width: 48ch; font-size: 1.08rem; }
.lp-note {
  max-width: 52ch;
  margin-top: 40px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ink);
  font-size: 0.95rem;
}
.lp-note strong { font-weight: 600; color: var(--ink); }

.lp-students-side { grid-column: 9 / 13; margin-top: 152px; }
.lp-side-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-cats { margin: 0 0 48px; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.lp-cats li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
}
.lp-cats li .mono { flex: none; width: 1.6rem; font-size: 0.72rem; color: var(--ink-3); }
.lp-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.3;
}
.lp-langs li:lang(ko), .lp-langs li:lang(zh) { font-family: var(--font-body); font-size: 1.4rem; font-weight: 400; }

/* ---------- Counselors ---------- */

.lp-band--ink { display: flow-root; background: var(--ink); color: #fff; padding-bottom: 0; }
.lp-band--ink .lp-label { color: rgba(255, 255, 255, 0.62); }
.lp-band--ink .lp-h2-xl { color: #fff; }
.lp-counsel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lp-counsel-head { grid-column: 1 / 6; }
.lp-features { grid-column: 7 / 13; margin: 8px 0 0; }
.lp-features > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.lp-features > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.lp-features dt { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: #fff; }
.lp-features dd { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }

/* The dashboard specimen straddles the dark band's lower edge, so the glass blurs black into white. */
.lp-dash-wrap { position: relative; z-index: 2; margin-top: 104px; margin-bottom: -150px; }
.lp-dash {
  width: min(760px, 100%);
  margin: 0 0 0 auto;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  color: var(--ink);
}
.lp-dash-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.lp-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-dash-stats > div { padding: 18px 18px 16px; border-right: 1px solid var(--line-soft); }
.lp-dash-stats > div:last-child { border-right: 0; }
.lp-dash-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.lp-dash-stats span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lp-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
}
.lp-dash-bars i { flex: 1; height: var(--h); background: var(--ink); opacity: 0.82; }
.lp-dash-bars i:last-child { background: var(--accent); opacity: 1; }
.lp-dash-caption {
  width: min(760px, 100%);
  margin: 14px 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Closing ---------- */

.lp-close {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-top: 264px;
  padding-bottom: 152px;
}
.lp-close .lp-label { grid-column: 1 / 13; }
.lp-close-title {
  grid-column: 1 / 10;
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 7.6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.lp-close-title em { font-style: italic; }
.lp-close-side { grid-column: 10 / 13; align-self: end; }
.lp-close-side p { color: var(--ink-3); }

/* ---------- Footer ---------- */

.lp-footer { border-top: 1px solid var(--line); }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 36px; }
.lp-footer-inner p { margin: 0; font-size: 0.78rem; color: var(--ink-3); }
.lp-footer-inner nav { display: flex; gap: 22px; margin-left: auto; }
.lp-footer-inner nav a { font-size: 0.88rem; color: var(--ink-3); text-decoration: none; }
.lp-footer-inner nav a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.lp-hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.lp-hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.lp-hero .reveal:nth-child(4) { transition-delay: 0.32s; }
.lp-hero .reveal:nth-child(5) { transition-delay: 0.44s; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .lp-links { display: none; }
  .lp-actions { margin-left: auto; }
  .lp-hero, .lp-how, .lp-students, .lp-counsel, .lp-close { display: block; }
  .lp-title { font-size: clamp(3.2rem, 15vw, 6.4rem); }
  .lp-title .lp-indent { padding-left: 0.6em; }
  .lp-hero-copy { margin-top: 32px; }
  .lp-specimen { margin-top: 56px; padding-top: 40px; }
  .lp-status { width: 90%; margin-left: 0; }
  .lp-door { width: 64%; }
  .lp-caption { margin-left: 0; }
  .lp-facts { grid-template-columns: 1fr; gap: 18px; margin-top: 64px; }
  .lp-facts li { padding: 0; border-left: 0; }
  .lp-how-head { position: static; margin-bottom: 40px; }
  .lp-steps li { grid-template-columns: 3.6rem 1fr; gap: 16px; }
  .lp-steps li:nth-child(n) { margin-left: 0; }
  .lp-step-n { font-size: 2.6rem; }
  .lp-students-side { margin-top: 64px; }
  .lp-features { margin-top: 40px; }
  .lp-features > div { grid-template-columns: 1fr; gap: 6px; }
  .lp-dash-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-dash-stats > div:nth-child(2) { border-right: 0; }
  .lp-dash-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .lp-dash-wrap { margin-top: 72px; margin-bottom: -110px; }
  .lp-close { padding-top: 200px; padding-bottom: 104px; }
  .lp-close-side { margin-top: 32px; }
  .lp-footer-inner nav { margin-left: 0; }
}

@media (max-width: 480px) {
  .lp-nav-inner { gap: 16px; }
  .lp-login { display: none; }
  .lp-status { width: 100%; }
}
