/* ==========================================================================
   KoalaCare — home page ("the shop window")

   Loaded only on /, after the shared sheets. Everything is scoped to .lp-* so
   the calmer interior document styling is untouched. Two hard rules apply:
   the CSP forbids inline styles, and the site loads no third-party anything,
   so depth comes from gradients, layering and inlined SVG — never an asset.
   ========================================================================== */

/* ------------------------------------------------------------------ shell */

.lp-shell {
  overflow-x: clip;
}

/* The clay primary action lives with the other button variants in
   components.css, because pricing, articles and the provider page carry it too. */

/* =================================================================== hero */

.lp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

/* A soft, warm mesh washed behind the fold. */
.lp-hero__mesh {
  position: absolute;
  inset: -10% -10% auto -10%;
  z-index: -2;
  height: min(760px, 118%);
  background: var(--mesh);
  pointer-events: none;
}

/* Fine grain over the whole fold: the difference between "flat vector" and
   "printed". Very quiet on purpose. */
.lp-hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

.lp-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-200);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-600);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(6px);
}

.lp-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(26, 144, 130, 0.18);
}

.lp-hero__title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: var(--fs-mega);
  font-weight: var(--fw-semibold);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--brand-950);
}

.lp-hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--brand-700);
}

.lp-hero__lead {
  margin-top: var(--sp-5);
  max-width: 35rem;
  color: var(--ink-600);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.lp-hero__reassure {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6);
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

.lp-hero__reassure li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.lp-hero__reassure .icon {
  color: var(--brand-500);
}

/* ------------------------------------------------ hero product composition */

.lp-stage {
  position: relative;
  padding: 1.25rem 0 2.75rem;
}

.lp-stage__glow {
  position: absolute;
  inset: 6% -6% -2% -6%;
  z-index: -1;
  border-radius: 42% 58% 52% 48% / 46% 42% 58% 54%;
  background: radial-gradient(
    60% 60% at 50% 42%,
    rgba(12, 92, 83, 0.24) 0%,
    rgba(12, 92, 83, 0) 70%
  );
  filter: blur(18px);
}

/* A dashed care ring, echoing the logo motif, sitting behind the cards. */
.lp-ring {
  position: absolute;
  top: -3%;
  right: -6%;
  width: 240px;
  height: 240px;
  border-radius: var(--r-full);
  border: 1.5px dashed rgba(18, 117, 106, 0.28);
  pointer-events: none;
}

.lp-ring::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 8%;
  width: 12px;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--clay-500);
  box-shadow: 0 0 0 6px rgba(200, 98, 42, 0.16);
}

.lp-panel {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

.lp-panel--main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
}

.lp-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}

.lp-panel__label {
  color: var(--ink-400);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.lp-panel__title {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.lp-people {
  display: grid;
  gap: var(--sp-3);
}

.lp-person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.lp-person__name {
  display: block;
  color: var(--ink-800);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.lp-person__role {
  color: var(--ink-400);
  font-size: var(--fs-2xs);
}

.lp-divide {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-100);
}

.lp-task {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-200);
  border-radius: var(--r-sm);
  background: var(--sand-050);
  font-size: var(--fs-sm);
}

.lp-task + .lp-task {
  margin-top: var(--sp-3);
}

.lp-task__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-300);
  border-radius: var(--r-full);
  background: var(--white);
  color: transparent;
}

.lp-task--done .lp-task__mark {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: var(--white);
}

.lp-task--done .lp-task__text {
  color: var(--ink-400);
  text-decoration: line-through;
}

.lp-task__text {
  color: var(--ink-700);
  font-weight: var(--fw-medium);
}

.lp-task__meta {
  margin-left: auto;
  color: var(--ink-400);
  font-size: var(--fs-2xs);
  white-space: nowrap;
}

.lp-task--event {
  background: var(--brand-050);
  border-color: var(--brand-200);
}

.lp-task--event .lp-task__mark {
  border-color: var(--brand-500);
  background: var(--white);
  color: var(--brand-600);
}

/* The rotated "today's doses" fragment behind the main panel. */
.lp-panel--doses {
  position: absolute;
  z-index: 3;
  left: -2rem;
  bottom: -1.25rem;
  width: 15rem;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  transform: rotate(-4.5deg);
  box-shadow: var(--sh-float);
}

.lp-doses__title {
  margin-bottom: var(--sp-3);
  color: var(--ink-500);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.lp-doses__row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-700);
}

.lp-doses__row + .lp-doses__row {
  margin-top: var(--sp-2);
}

.lp-doses__time {
  margin-left: auto;
  color: var(--ink-400);
  font-size: var(--fs-2xs);
}

.lp-doses__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--brand-500);
}

.lp-doses__dot--q {
  background: var(--line-300);
}

/* The floating confirmation chip. */
.lp-chip {
  position: absolute;
  z-index: 4;
  top: 12%;
  right: -1rem;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 15rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-float);
  font-size: var(--fs-xs);
}

.lp-chip__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--r-full);
  background: var(--success-100);
  color: var(--success-800);
}

.lp-chip strong {
  display: block;
  color: var(--ink-800);
  font-size: var(--fs-xs);
}

.lp-chip span:last-child {
  color: var(--ink-400);
  font-size: var(--fs-2xs);
}

/* ------------------------------------------------------------ trust strip */

.lp-trust {
  position: relative;
  padding-block: var(--sp-6);
  background: var(--white);
  border-block: 1px solid var(--line-100);
}

.lp-trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4) var(--sp-6);
  text-align: center;
}

.lp-trust__label {
  color: var(--ink-400);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.lp-trust__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
}

.lp-trust__list li {
  color: var(--ink-600);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.lp-trust__list li + li::before {
  content: "·";
  margin-right: var(--sp-5);
  color: var(--brand-300);
}

/* ---------------------------------------------------------------- problem */

.lp-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.lp-problem {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.lp-problem__num {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-100);
}

.lp-problem__title {
  color: var(--ink-900);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

.lp-problem p {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.62;
}

/* ------------------------------------------------------------ how / steps */

.lp-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.lp-timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line-300) 10%,
    var(--line-300) 90%,
    transparent 100%
  );
}

.lp-step {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
}

.lp-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  background: var(--brand-700);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  box-shadow: 0 0 0 8px var(--sand-050);
}

.lp-step__title {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.lp-step__body {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* --------------------------------------------------------------- features */

.lp-features {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-5);
}

.lp-feature {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

.lp-feature--lg {
  grid-column: span 6;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-050) 100%);
  border-color: var(--brand-200);
}

.lp-feature--sm {
  grid-column: span 3;
}

.lp-feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-050);
  color: var(--brand-600);
}

.lp-feature--lg .lp-feature__icon {
  background: var(--brand-700);
  color: var(--brand-100);
}

.lp-feature__title {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.lp-feature--sm .lp-feature__title {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
}

.lp-feature__body {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.62;
}

/* A tiny, illustrative slice of the feature shown inside the large cards. */
.lp-mini {
  margin-top: auto;
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}

.lp-mini__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-600);
}

.lp-mini__row + .lp-mini__row {
  margin-top: var(--sp-3);
}

.lp-mini__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: var(--r-full);
  background: var(--brand-500);
}

.lp-mini__dot--clay {
  background: var(--clay-500);
}

.lp-mini__dot--hair {
  border: 1.5px solid var(--line-300);
  background: var(--white);
}

.lp-mini__meta {
  margin-left: auto;
  color: var(--ink-400);
  font-size: var(--fs-2xs);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ week */

.lp-week {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lp-week__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.lp-week__note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
}

.lp-rail {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding-left: var(--sp-6);
}

.lp-rail::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--brand-300) 0%,
    var(--line-200) 60%,
    transparent 100%
  );
}

.lp-rail__item {
  position: relative;
}

.lp-rail__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(-1 * var(--sp-6) + 2px);
  width: 12px;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 2.5px solid var(--brand-500);
}

.lp-rail__day {
  color: var(--brand-700);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.lp-rail__text {
  margin-top: var(--sp-1);
  color: var(--ink-600);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.lp-rail__text strong {
  color: var(--ink-900);
  font-weight: var(--fw-semibold);
}

/* -------------------------------------------------------------- principles */

.lp-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.lp-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-lg);
}

.lp-principle__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-900);
  color: var(--brand-100);
}

.lp-principle__title {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.lp-principle__body {
  margin-top: var(--sp-2);
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ------------------------------------------------------------ story / quote */

.lp-quote {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-950) 100%);
  color: var(--brand-100);
  text-align: center;
  overflow: hidden;
}

.lp-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.lp-quote__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-200);
}

.lp-quote__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.012em;
  color: var(--white);
}

.lp-quote__cite {
  position: relative;
  margin-top: var(--sp-5);
  color: var(--brand-300);
  font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------- section */

.lp-lede {
  max-width: 44rem;
  margin-top: var(--sp-4);
  color: var(--ink-500);
  font-size: var(--fs-lead);
}

/* ============================================================== responsive */

@media (max-width: 1024px) {
  .lp-hero__grid,
  .lp-week {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .lp-hero__title {
    max-width: 20ch;
  }

  .lp-stage {
    max-width: 34rem;
  }

  .lp-week__aside {
    position: static;
  }

  .lp-panel--doses {
    left: 0;
    bottom: -0.5rem;
  }
}

@media (max-width: 900px) {
  .lp-problem-grid,
  .lp-timeline,
  .lp-principles {
    grid-template-columns: 1fr;
  }

  .lp-timeline::before {
    display: none;
  }

  .lp-feature--lg {
    grid-column: span 12;
  }

  .lp-feature--sm {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .lp-feature--sm {
    grid-column: span 12;
  }

  .lp-ring {
    display: none;
  }

  .lp-panel--doses {
    position: static;
    width: auto;
    transform: none;
    margin-top: var(--sp-4);
  }

  .lp-chip {
    position: static;
    max-width: none;
    margin-top: var(--sp-4);
  }

  .lp-hero__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------- polish
   Motion here is additive only: the page is fully rendered and readable with
   JavaScript off, and nothing is ever hidden behind an animation. */

.lp-feature,
.lp-principle,
.lp-problem {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.lp-feature:hover,
.lp-principle:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-md);
}

.lp-panel--main {
  transition: transform var(--dur) var(--ease);
}

.lp-hero__mesh {
  transition: transform 0.2s linear;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .lp-feature:hover,
  .lp-principle:hover {
    transform: none;
  }

  .lp-hero__mesh {
    transition: none;
  }
}
