/* Shared landing components and cross-screen layout rules. */

/* Approved screen styles for screens 1, 2, 3 and 4. Preserve cascade order when editing. */
.section {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  scroll-margin-top: var(--np-anchor-offset);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(251, 247, 239, 0.9)),
    var(--color-bg-soft);
}

.section::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 7% -12% -8% 41%;
  border-radius: 50%;
  background: rgba(223, 244, 235, 0.86);
  transform: rotate(-7deg);
}

.section::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: auto -16% -17% 32%;
  height: 31%;
  border-radius: 50% 50% 0 0;
  background: rgba(217, 246, 232, 0.68);
  filter: blur(8px);
}

.section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1672px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(54px, 6.6vh, 76px) clamp(38px, 2.9vw, 50px);
}

.section__copy {
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  color: var(--green);
  font-size: clamp(14px, 1.08vw, 18px);
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: 0 0 48px;
  width: 48px;
  height: 3px;
  background: currentColor;
}

.hero .eyebrow::before,
.problem .eyebrow::before {
  display: none;
}

h1,
h2 {
  margin: 0;
  color: var(--color-green);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 4vw, 68px);
}

h2 {
  font-size: clamp(36px, 3.2vw, 60px);
}

h1 span,
h2 span {
  color: var(--green);
}

.lead {
  margin: 24px 0 0;
  color: rgba(28, 39, 37, 0.74);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.35vw, 23px);
  line-height: 1.45;
}

.molecule {
  position: absolute;
  z-index: -1;
  color: #9ccfbb;
  opacity: 0.26;
  pointer-events: none;
}

.molecule--tl {
  top: -8px;
  left: 0;
  width: min(17vw, 270px);
}

.molecule--tr {
  top: 28px;
  right: -14px;
  width: min(19vw, 310px);
}

.molecule--bl {
  left: 5.8%;
  bottom: 4.2%;
  width: min(15vw, 240px);
}

.visual-shell {
  position: relative;
  margin: 0;
}

.product-shot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(var(--shadow));
  user-select: none;
  -webkit-user-drag: none;
}

.icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(0, 127, 66, 0.12);
  border-radius: 8px;
  color: var(--green);
  background: linear-gradient(180deg, #eef9f3, #e2f2ea);
}

.icon-card svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(.tail-icon, .lesson-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

:where(.tail-icon svg, .lesson-icon svg) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(197, 210, 208, 0.72);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row h3 {
  margin: 0;
  color: #122236;
  font-size: clamp(21px, 1.45vw, 25px);
  line-height: 1.2;
}

.feature-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.14vw, 20px);
  line-height: 1.38;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 63px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 30px;
  font-size: 19px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.button--primary {
  width: 266px;
  color: #fff;
  border-color: #00793e;
  background: linear-gradient(180deg, #00874a 0%, #00723b 100%);
  box-shadow: 0 19px 28px rgba(0, 113, 59, 0.19);
}

.button--secondary {
  width: 286px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.78);
}

.button--features {
  width: 286px;
}

.ui-frame {
  color: var(--ui-frame-color, #162033);
  font-family: var(--font-body);
  letter-spacing: 0;
  background: var(--ui-frame-bg, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--ui-frame-border, rgba(193, 204, 216, 0.84));
  box-shadow: var(--ui-frame-shadow, var(--ai-card-shadow, var(--shadow)));
}

.ui-frame svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-button,
.ui-save,
.ui-clear,
.report-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9em;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 760;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1em;
  padding: 0 0.7em;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 820;
}

.badge--green {
  color: #008747;
  background: #dff7e9;
}

.badge--amber {
  color: #a85d00;
  background: #fff0d5;
}

.process {
  position: relative;
  display: block;
  height: clamp(242px, 37.5vh, 318px);
  margin-top: clamp(24px, 4.8vh, 42px);
}

.process::before {
  display: none;
}

.process-route {
  position: absolute;
  z-index: 1;
  inset: -1.5% 0 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--green);
  pointer-events: none;
}

.process-route__track,
.process-route__dash {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-route__track {
  stroke-width: 2.4;
}

.process-route__dash {
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  opacity: 0.66;
  transform: translateY(-5px);
}

.process-route__dot {
  fill: var(--green);
  stroke: #ffffff;
  stroke-width: 3;
}

.process-route__node,
.process-route__finish {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 2.2;
}

.process-route__node-text {
  fill: var(--green);
  font-size: 16px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.process-route__finish-check {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-card {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(118px, 12.4%, 148px);
  height: clamp(154px, 25.8vh, 188px);
  min-height: 0;
  padding: 18px 12px 15px;
  border: 1px solid rgba(218, 227, 224, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(27, 75, 60, 0.1);
  text-align: center;
}

.process-card:nth-of-type(1) {
  top: 4%;
  left: 0;
}

.process-card:nth-of-type(2) {
  top: 20%;
  left: 16.2%;
  width: clamp(108px, 11.2%, 132px);
  height: clamp(146px, 23.5vh, 170px);
}

.process-card:nth-of-type(3) {
  top: 0;
  left: 33.1%;
}

.process-card:nth-of-type(4) {
  top: 29%;
  left: 50.4%;
  width: clamp(108px, 11.2%, 132px);
  height: clamp(140px, 22vh, 160px);
}

.process-card:nth-of-type(5) {
  top: 0;
  left: 67.4%;
}

.process-card:nth-of-type(6) {
  top: 13.5%;
  right: 2.4%;
}

.process-card__number {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 800;
}

.process-card svg {
  width: clamp(30px, 5.2vh, 38px);
  height: clamp(30px, 5.2vh, 38px);
  margin: 8px auto 12px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-card h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(14px, 1.95vh, 16px);
  line-height: 1.18;
}

.process-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(11px, 1.55vh, 13px);
  line-height: 1.4;
}

@media (max-width: 1240px) {
  .section__inner {
      min-height: auto;
      padding: 72px 34px;
    }

  .process {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      height: auto;
      gap: 18px;
    }

  .process::before {
      display: none;
    }

  .process-route {
      display: none;
    }

  .process-card,
    .process-card:nth-of-type(2),
    .process-card:nth-of-type(4) {
      position: relative;
      top: auto;
      right: auto;
      left: auto;
      width: auto;
      height: auto;
      min-height: 160px;
    }

  .process-card:nth-child(even),
    .process-card:nth-of-type(even) {
      transform: none;
    }
}

@media (max-width: 740px) {
  html,
    body,
    .landing,
    .section,
    .section__inner {
      max-width: 100%;
      overflow-x: hidden;
    }

  .section {
      min-height: auto;
    }

  .section::before {
      inset: 20% -62% 18% 18%;
    }

  .section::after {
      inset: auto -45% -11% 4%;
      height: 24%;
    }

  .section__inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      min-height: auto;
      padding: 58px 20px 64px;
      gap: 28px;
    }

  .molecule {
      opacity: 0.18;
    }

  .molecule--tl {
      left: -64px;
      width: 240px;
    }

  .molecule--tr {
      right: -96px;
      width: 260px;
    }

  .eyebrow {
      display: block;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 13px;
      overflow-wrap: anywhere;
    }

  .eyebrow::before {
      flex-basis: 38px;
      width: 38px;
      height: 2px;
    }

  .lead {
      margin-top: 20px;
      font-size: 16px;
      line-height: 1.5;
      overflow-wrap: break-word;
    }

  .section__copy {
      max-width: 100%;
      min-width: 0;
    }

  .product-shot {
      border-radius: 8px;
      filter: drop-shadow(0 18px 36px rgba(16, 61, 43, 0.11));
    }

  .hero__visual .product-shot,
    .problem__visual .product-shot {
      transform: none;
    }

  .button,
    .button--primary,
    .button--secondary,
    .button--features {
      width: 100%;
    }

  .process {
      grid-template-columns: 1fr;
      gap: 14px;
    }

  .process-card {
      min-height: 180px;
    }

  .feature-row {
      grid-template-columns: 62px 1fr;
      gap: 14px;
    }

  .icon-card {
      width: 54px;
      height: 54px;
    }

  .icon-card svg {
      width: 28px;
      height: 28px;
    }
}

.lead-break {
  display: none;
}

.feature-break {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --np-anchor-offset: 62px;
  }
}

@media (max-width: 620px) {
  :root {
    --np-anchor-offset: 58px;
  }
}
