/* CSP public entrance, 2026-07-24 */
html[data-csp-intro="seen"] .landing-intro,
.landing-intro[hidden] {
  display: none;
}

body.landing-page {
  background: #fff;
}

.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  animation: csp-intro-reveal 2.1s cubic-bezier(.72, 0, .2, 1) forwards;
}

.landing-intro-stage {
  position: relative;
  width: min(390px, 78vw);
  aspect-ratio: 1;
}

.landing-intro-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.5;
  animation: csp-character-arrive .62s cubic-bezier(.18, .82, .24, 1) both;
}

.landing-intro-stage strong {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  translate: -50% 0;
  color: var(--brand-deep);
  font-size: 1.25rem;
  letter-spacing: 0;
  opacity: 0;
  animation: csp-wordmark-arrive .42s .34s ease-out forwards;
}

.landing-intro-tongue {
  position: absolute;
  left: 68%;
  top: 44%;
  z-index: 4;
  width: min(58vw, 520px);
  height: 9px;
  border-radius: 0 9px 9px 0;
  background: #ee747d;
  transform: rotate(-2deg) scaleX(0);
  transform-origin: left center;
  animation: csp-tongue-extend .78s .58s cubic-bezier(.2, .75, .2, 1) forwards;
}

.landing-intro-tongue i {
  position: absolute;
  right: -7px;
  top: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ee747d;
}

@keyframes csp-character-arrive {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes csp-wordmark-arrive {
  to { opacity: 1; transform: translateY(-7px); }
}

@keyframes csp-tongue-extend {
  0% { transform: rotate(-2deg) scaleX(0); }
  72%, 100% { transform: rotate(-2deg) scaleX(1); }
}

@keyframes csp-intro-reveal {
  0%, 67% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.landing-page .csp-landing {
  color: #173626;
}

.landing-page main {
  position: relative;
}

.landing-page .landing-header {
  min-height: 70px;
  border-color: #d5e4d9;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.landing-page .landing-header .mark {
  box-shadow: 0 7px 18px rgba(0, 90, 53, .14);
}

.landing-page .landing-nav a:first-child {
  color: var(--accent);
}

.landing-page .landing-hero {
  --hero-x: 0px;
  --hero-y: 0px;
  min-height: calc(100svh - 130px);
  padding-top: 48px;
  padding-bottom: 48px;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  gap: 68px;
  border-bottom: 1px solid #d5e4d9;
  background: #fff;
}

.landing-page .landing-hero::before,
.landing-page .landing-hero::after {
  display: none;
}

.landing-hero-character {
  position: absolute;
  right: max(-48px, calc((100% - 1380px) / 2));
  top: 50%;
  z-index: -1;
  width: min(680px, 49vw);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: .13;
  transform: translate(var(--hero-x), calc(-50% + var(--hero-y)));
  transition: transform .24s ease-out;
  pointer-events: none;
}

.landing-page .landing-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.landing-page .landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #08723f;
  font-size: .78rem;
}

.landing-page .landing-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: #168447;
}

.landing-page .landing-hero h1 {
  max-width: 720px;
  font-size: 3.5rem;
  line-height: 1.25;
}

.landing-page .landing-hero h1 em {
  color: #168447;
  font-style: normal;
}

.landing-page .landing-lead {
  max-width: 600px;
  margin-top: 20px;
  font-size: .94rem;
}

.landing-fee-lockup {
  margin-top: 23px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: end;
  width: fit-content;
  border-left: 4px solid #168447;
  padding-left: 16px;
}

.landing-fee-lockup > span {
  align-self: center;
  color: #375645;
  font-size: .8rem;
  font-weight: 800;
}

.landing-fee-lockup > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #005a35;
  font-size: 4rem;
  line-height: .88;
}

.landing-fee-lockup > strong small {
  margin-left: 4px;
  font-size: 1.15rem;
}

.landing-fee-lockup > p {
  margin: 2px 0 0;
  color: #667b6e;
  font-size: .66rem;
  font-weight: 700;
}

.landing-page .landing-hero-actions {
  margin-top: 24px;
}

.landing-page .landing-primary-action,
.landing-page .landing-secondary-action {
  min-width: 156px;
}

.landing-page .landing-legal-note {
  margin-top: 13px;
}

.landing-page .landing-login-card {
  position: absolute;
  top: 170px;
  right: max(24px, calc((100% - 1180px) / 2));
  z-index: 3;
  width: min(390px, calc(100% - 48px));
  max-width: 390px;
  padding: 24px;
  border-color: #bcd3c3;
  box-shadow: 0 20px 55px rgba(13, 77, 40, .14);
}

.landing-page .landing-login-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.landing-login-free {
  flex: none;
  color: #08723f;
  font-size: .66rem;
  font-weight: 850;
}

.landing-login-free::before {
  content: "●";
  margin-right: 5px;
  font-size: .52rem;
  vertical-align: 1px;
}

.landing-page .landing-login-card .field {
  border: 1px solid #d6e5da;
  background: #fbfdfb;
}

.landing-page .landing-login-card .field:focus-within {
  border-color: #168447;
  box-shadow: 0 0 0 3px rgba(22, 132, 71, .09);
}

.landing-page .landing-login-button:hover {
  background: #0f733b;
}

.landing-login-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.landing-login-links .landing-recovery-link,
.landing-login-links .landing-code-toggle {
  min-width: 0;
  min-height: 38px;
  margin: 0;
  font-size: .66rem;
}

.landing-fee-band {
  min-height: 112px;
  padding: 23px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-bottom: 1px solid #d5e4d9;
  background: #f2f8f4;
}

.landing-fee-band > div {
  min-width: 0;
  padding: 2px 28px;
  border-left: 1px solid #c7d9cc;
}

.landing-fee-band > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-fee-band span,
.landing-fee-band strong {
  display: block;
}

.landing-fee-band span {
  color: #667b6e;
  font-size: .68rem;
  font-weight: 700;
}

.landing-fee-band strong {
  margin-top: 2px;
  color: #005a35;
  font-size: 1.25rem;
}

.landing-fee-band > p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #d5e4d9;
  color: #667b6e;
  font-size: .63rem;
}

.landing-page .landing-role-band,
.landing-page .landing-flow-band {
  padding-top: 68px;
  padding-bottom: 74px;
}

.landing-page .landing-role-grid article {
  position: relative;
}

.landing-page .landing-role-grid article::after {
  content: "→";
  position: absolute;
  top: 32px;
  right: 34px;
  color: #9abca4;
  font-size: 1.2rem;
}

.landing-page .landing-flow-band {
  background: #edf6f0;
}

.landing-page .landing-record-band {
  background: #fff;
}

@media (max-width: 860px) {
  .landing-page .landing-header {
    min-height: 62px;
    padding: 10px 18px;
    grid-template-columns: 1fr auto;
  }

  .landing-page .landing-header .sub,
  .landing-page .landing-nav {
    display: none;
  }

  .landing-page .landing-hero {
    min-height: auto;
    padding: 18px 18px 22px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-hero-character {
    right: -105px;
    top: 260px;
    width: 420px;
    opacity: .09;
  }

  .landing-page .landing-hero h1 {
    font-size: 2.1rem;
    line-height: 1.32;
  }

  .landing-page .landing-lead {
    margin-top: 13px;
    font-size: .8rem;
    line-height: 1.68;
  }

  .landing-fee-lockup {
    margin-top: 15px;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    column-gap: 10px;
    align-items: center;
    padding-left: 12px;
  }

  .landing-fee-lockup > strong {
    grid-row: 1;
    grid-column: 2;
    font-size: 2.8rem;
  }

  .landing-fee-lockup > p {
    grid-row: 1;
    grid-column: 3;
    max-width: 74px;
  }

  .landing-page .landing-hero-actions {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-page .landing-primary-action,
  .landing-page .landing-secondary-action {
    min-width: 0;
    min-height: 46px;
    padding: 9px 8px;
    font-size: .75rem;
  }

  .landing-page .landing-legal-note {
    margin-top: 10px;
    font-size: .6rem;
  }

  .landing-page .landing-login-card {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    max-width: none;
    justify-self: stretch;
    padding: 18px;
  }

  .landing-page .landing-login-card > header {
    margin-bottom: 10px;
  }

  .landing-page .landing-login-card .field {
    margin: 7px 0;
    padding: 5px 11px;
  }

  .landing-page .landing-login-card .field input {
    padding: 3px 0;
  }

  .landing-page .landing-login-button {
    min-height: 44px;
  }

  .landing-page .landing-code-toggle {
    min-height: 34px;
    margin-top: 4px;
  }

  .landing-fee-band {
    min-height: 0;
    padding: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-fee-band > div {
    padding: 2px 10px;
  }

  .landing-fee-band strong {
    font-size: .94rem;
    overflow-wrap: anywhere;
  }

  .landing-fee-band > p {
    font-size: .58rem;
  }
}

@media (max-width: 390px) {
  .landing-page .landing-hero {
    padding-inline: 14px;
  }

  .landing-page .landing-hero h1 {
    font-size: 1.88rem;
  }

  .landing-fee-band {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-intro {
    display: none;
    animation: none;
  }

  .landing-intro *,
  .landing-hero-character {
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
