/* Public landing page — mobile-first across phone → tablet → laptop → desktop */

.landing-body {
  /* Never inherit the app admin shell grid */
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  color: var(--color-ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 520px at 85% -10%, #d7f0ec 0%, transparent 55%),
    radial-gradient(900px 480px at 0% 20%, #f0e8d8 0%, transparent 50%),
    linear-gradient(180deg, #f7f3eb 0%, var(--color-bg) 45%, #ebe4d6 100%);
  overflow-x: hidden;
}

.landing-body > header,
.landing-body > main,
.landing-body > footer {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  max-width: none;
}

/* —— Nav (phone default) ——
   Order in markup: brand | links | actions | menu
   Phone layout: brand · actions · menu  (links expand below)
*/
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "brand actions menu"
    "links links links";
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 252, 247, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(12px);
}

.lp-nav__brand { grid-area: brand; }
.lp-nav__links { grid-area: links; }
.lp-nav__actions { grid-area: actions; }
.lp-nav__menu-btn { grid-area: menu; }

.lp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--color-ink) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
}

.lp-nav__brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-nav__mark {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.lp-nav__menu-btn {
  appearance: none;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
}

.lp-nav__links {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0 0.15rem;
  border-top: 1px solid var(--color-line);
}

.lp-nav.is-open .lp-nav__links {
  display: flex;
}

.lp-nav__links a {
  color: var(--color-muted) !important;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none !important;
  padding: 0.65rem 0.25rem;
  border-radius: 8px;
}

.lp-nav__links a:hover,
.lp-nav__links a:focus-visible {
  color: var(--color-ink) !important;
  background: rgba(15, 118, 110, 0.08);
}

.lp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lp-nav__actions .lp-btn--ghost {
  display: none;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lp-btn--lg {
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  width: 100%;
}

.lp-btn--solid {
  background: var(--color-accent);
  color: #fff !important;
  border: 1px solid transparent;
}
.lp-btn--solid:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.lp-btn--ghost {
  background: transparent;
  color: var(--color-ink) !important;
  border: 1px solid var(--color-line);
}
.lp-btn--ghost:hover {
  background: #fff;
  border-color: #cfc6b6;
}

/* —— Hero —— */
.lp-hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.lp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lp-hero__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.55) 0%, rgba(18, 53, 47, 0.35) 42%, rgba(243, 239, 230, 0.15) 100%),
    linear-gradient(180deg, transparent 30%, rgba(247, 243, 235, 0.94) 72%, #f7f3eb 100%),
    radial-gradient(800px 500px at 70% 30%, #1a8f85 0%, transparent 60%);
  animation: lpGlow 10s ease-in-out infinite alternate;
}

.lp-device {
  position: absolute;
  right: -6%;
  top: 5%;
  width: min(170px, 38vw);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  padding: 8px;
  background: linear-gradient(160deg, #2a3532, #121a18);
  box-shadow: 0 24px 48px rgba(18, 30, 28, 0.3);
  opacity: 0.22;
  animation: lpFloat 7s ease-in-out infinite;
}

.lp-device__screen {
  height: 100%;
  border-radius: 16px;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.15), rgba(12, 22, 20, 0.85)),
    linear-gradient(145deg, #0f766e, #12352f 70%);
  color: #f4fffc;
}

.lp-device__badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.lp-device__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
}

.lp-device__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.lp-device__bars span {
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: bottom;
  animation: lpBar 1.4s ease-in-out infinite;
}
.lp-device__bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.lp-device__bars span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.lp-device__bars span:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.lp-device__bars span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.lp-device__bars span:nth-child(5) { height: 45%; animation-delay: 0.4s; }

.lp-device__meta {
  font-size: 0.72rem;
  opacity: 0.8;
}

.lp-hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  padding: 1.75rem 1rem 2.5rem;
  animation: lpRise 0.9s ease both;
}

.lp-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.15;
}

.lp-hero__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lp-lead {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
  font-size: clamp(0.98rem, 3.5vw, 1.08rem);
  line-height: 1.55;
}

.lp-hero__cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

/* —— Sections —— */
.lp-section {
  padding: 3.25rem 1rem;
}

.lp-section--tint {
  background: rgba(255, 252, 247, 0.72);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.lp-section__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.lp-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lp-section__text {
  margin: 0.9rem 0 0;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.lp-problem-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.lp-problem-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.45;
}

.lp-problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--color-accent);
}

.lp-solutions {
  margin-top: 1.85rem;
  display: grid;
  gap: 1.6rem;
}

.lp-solution h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lp-solution p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
  font-size: 1rem;
}

.lp-steps {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.lp-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.lp-steps__num {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.lp-steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

.lp-steps p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

/* —— Pricing —— */
.lp-section__inner--wide {
  max-width: 40rem;
}

.lp-pricing {
  margin-top: 1.85rem;
  display: grid;
  gap: 1rem;
}

.lp-price {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.9);
}

.lp-price--featured {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(180deg, rgba(215, 240, 236, 0.85) 0%, rgba(255, 252, 247, 0.95) 100%);
  box-shadow: 0 10px 28px rgba(18, 53, 47, 0.08);
}

.lp-price__badge {
  margin: 0;
  align-self: flex-start;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-price h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.lp-price__amount {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lp-price__amount span {
  margin-left: 0.2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.lp-price ul {
  margin: 0.15rem 0 0.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.lp-price li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--color-ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.lp-price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 2px;
  background: var(--color-accent);
}

.lp-price .lp-btn {
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
}

.lp-pricing-note {
  margin: 1.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lp-closing {
  padding: 3.25rem 1rem 3.75rem;
  background: linear-gradient(160deg, #12352f 0%, #0f766e 55%, #1a8f85 100%);
  color: #f4fffc;
}

.lp-closing__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.lp-closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  line-height: 1.18;
}

.lp-closing p {
  margin: 0.9rem 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.55;
  opacity: 0.92;
}

.lp-closing .lp-btn--solid {
  background: #fff;
  color: #12352f !important;
  width: 100%;
}
.lp-closing .lp-btn--solid:hover {
  background: #eef8f6;
  color: #0b5f59 !important;
}

.lp-footer {
  padding: 1.75rem 1rem 2.25rem;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 252, 247, 0.85);
}

.lp-footer__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.lp-footer strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.lp-footer p {
  margin: 0.4rem 0 0;
  color: var(--color-muted);
  line-height: 1.5;
  font-size: 0.95rem;
  word-break: break-word;
}

.lp-footer__meta {
  margin-top: 0.9rem !important;
}

@keyframes lpRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes lpBar {
  0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes lpGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.12) brightness(1.03); }
}

/* —— Large phones / small tablets —— */
@media (min-width: 480px) {
  .lp-nav {
    padding: 0.8rem 1.15rem;
  }

  .lp-nav__brand { font-size: 1.02rem; }

  .lp-hero__copy {
    padding: 2.25rem 1.25rem 3rem;
  }

  .lp-hero__cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-btn--lg { width: auto; }

  .lp-closing .lp-btn--solid {
    width: auto;
  }

  .lp-device {
    width: min(200px, 36vw);
    opacity: 0.28;
    right: -2%;
  }
}

/* —— Tablets & up: brand | section links (center) | Log in / Get started (end) —— */
@media (min-width: 768px) {
  .lp-nav {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand links actions";
    gap: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .lp-nav__menu-btn { display: none; }

  .lp-nav__brand {
    justify-self: start;
  }

  .lp-nav__links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 1.1rem;
    padding: 0;
    border-top: 0;
  }

  .lp-nav__actions {
    justify-self: end;
  }

  .lp-nav__links a {
    padding: 0.25rem 0;
  }

  .lp-nav__actions .lp-btn--ghost {
    display: inline-flex;
  }

  .lp-hero {
    align-items: center;
    min-height: calc(100vh - 4.25rem);
    padding: 0 1.5rem;
  }

  .lp-hero__copy {
    max-width: 34rem;
    padding: 3.5rem 0 4rem;
  }

  .lp-hero__copy h1 {
    max-width: 18ch;
  }

  .lp-device {
    opacity: 1;
    right: 6%;
    top: 14%;
    width: min(240px, 30vw);
    border-radius: 26px;
    padding: 10px;
  }

  .lp-device__title { font-size: 1.3rem; }

  .lp-section,
  .lp-closing,
  .lp-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lp-section { padding-top: 4rem; padding-bottom: 4rem; }

  .lp-solutions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .lp-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .lp-section__inner,
  .lp-section__inner--wide,
  .lp-closing__inner,
  .lp-footer__inner {
    max-width: 900px;
  }
}

/* —— Laptops (1100+) —— */
@media (min-width: 1100px) {
  .lp-nav {
    padding: 0.95rem 2.25rem;
  }

  .lp-nav__brand { font-size: 1.1rem; }

  .lp-hero {
    padding: 0 2.25rem;
  }

  .lp-hero__copy {
    max-width: 38rem;
    padding: 4.5rem 0;
  }

  .lp-hero__copy h1 {
    max-width: 20ch;
  }

  .lp-device {
    right: 10%;
    top: 12%;
    width: min(300px, 26vw);
  }

  .lp-section,
  .lp-closing,
  .lp-footer {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }

  .lp-section { padding-top: 4.75rem; padding-bottom: 4.75rem; }

  .lp-section__inner,
  .lp-section__inner--wide,
  .lp-closing__inner,
  .lp-footer__inner {
    max-width: 1040px;
  }

  .lp-solutions { gap: 2rem; }

  .lp-pricing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

/* —— Large desktops (1440+) —— */
@media (min-width: 1440px) {
  .lp-nav {
    padding: 1.05rem max(3rem, calc((100vw - 1200px) / 2));
  }

  .lp-nav__brand { font-size: 1.15rem; }

  .lp-nav__links { gap: 1.5rem; }

  .lp-hero {
    min-height: calc(100vh - 4.5rem);
    padding: 0 max(3rem, calc((100vw - 1200px) / 2));
  }

  .lp-hero__copy {
    max-width: 42rem;
    padding: 5rem 0 5.5rem;
  }

  .lp-brand {
    font-size: clamp(2.1rem, 2.2vw, 2.6rem);
  }

  .lp-hero__copy h1 {
    font-size: clamp(2rem, 2.1vw, 2.55rem);
    max-width: 20ch;
  }

  .lp-lead {
    font-size: 1.15rem;
    max-width: 38rem;
  }

  .lp-device {
    opacity: 1;
    right: max(8%, calc((100vw - 1200px) / 2 + 2rem));
    top: 11%;
    width: min(320px, 22vw);
    border-radius: 30px;
    padding: 12px;
  }

  .lp-device__title { font-size: 1.5rem; }

  .lp-section,
  .lp-closing,
  .lp-footer {
    padding-left: max(3rem, calc((100vw - 1200px) / 2));
    padding-right: max(3rem, calc((100vw - 1200px) / 2));
  }

  .lp-section {
    padding-top: 5.25rem;
    padding-bottom: 5.25rem;
  }

  .lp-section h2,
  .lp-closing h2 {
    font-size: clamp(2.1rem, 2.2vw, 2.65rem);
  }

  .lp-section__inner,
  .lp-section__inner--wide,
  .lp-closing__inner,
  .lp-footer__inner {
    max-width: 1200px;
  }

  .lp-solutions { gap: 2.5rem; }

  .lp-pricing { gap: 1.35rem; }

  .lp-closing {
    padding-top: 5.5rem;
    padding-bottom: 5.75rem;
  }
}

/* —— Ultra-wide (1920+) —— */
@media (min-width: 1920px) {
  .lp-nav,
  .lp-hero,
  .lp-section,
  .lp-closing,
  .lp-footer {
    padding-left: max(4rem, calc((100vw - 1360px) / 2));
    padding-right: max(4rem, calc((100vw - 1360px) / 2));
  }

  .lp-device {
    right: max(8%, calc((100vw - 1360px) / 2 + 2rem));
    width: min(340px, 18vw);
  }

  .lp-section__inner,
  .lp-section__inner--wide,
  .lp-closing__inner,
  .lp-footer__inner {
    max-width: 1360px;
  }
}

/* Short viewports (landscape phones) */
@media (max-height: 520px) and (orientation: landscape) {
  .lp-hero {
    min-height: auto;
    align-items: center;
  }

  .lp-device { display: none; }

  .lp-hero__copy {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .lp-hero__cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero__copy,
  .lp-device,
  .lp-device__bars span,
  .lp-hero__glow {
    animation: none !important;
  }
}
