/* Screen 1: hero. */

.hero .section__inner {
  padding-top: calc(clamp(54px, 6.6vh, 76px) + var(--np-header-offset));
}

.hero h1 {
  font-size: clamp(36px, 4vw, 68px);
  line-height: 0.96;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(650px, 0.82fr) minmax(680px, 1fr);
  grid-template-areas:
    "copy visual"
    "features visual"
    "actions visual";
  column-gap: clamp(42px, 3.2vw, 58px);
  align-content: center;
  align-items: center;
}

.hero__copy {
  grid-area: copy;
  max-width: 592px;
}

.hero .lead {
  max-width: 556px;
}

.hero__visual {
  grid-area: visual;
  align-self: center;
  width: min(100%, 840px);
}

.hero__visual .product-shot {
  transform: translateX(-7%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.hero__features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 10px 16px;
  max-width: 462px;
  margin-top: 26px;
}

.hero-feature {
  display: flex;
  align-items: center;
  min-height: 53px;
  padding: 12px 16px;
  border: 1px solid var(--green-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--green);
  font-size: 15.5px;
  font-weight: 760;
  line-height: 1.2;
  box-shadow: 0 11px 24px rgba(0, 91, 48, 0.035);
}

.hero-feature svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__actions {
  grid-area: actions;
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

@media (max-width: 1240px) {
  .hero__features {
      grid-area: features;
    }

  .hero__actions {
      grid-area: actions;
    }
}

@media (max-width: 740px) {
  h1,
    h2,
    .hero h1 {
      font-size: clamp(32px, 9vw, 40px);
      line-height: 0.94;
    }

  .hero__inner {
      width: 100vw;
      max-width: 100vw;
      gap: 16px;
    }

  .hero__copy,
    .hero__visual,
    .hero__features,
    .hero__actions {
      min-width: 0;
    }

  .hero h1,
    .hero .lead,
    .hero .eyebrow {
      max-width: calc(100vw - 40px);
    }

  .hero__features {
      grid-template-columns: 1fr;
      width: min(100%, 320px);
      max-width: calc(100vw - 40px);
      justify-self: center;
      margin-top: 0;
    }

  .hero-feature {
      min-height: 52px;
    }

  .hero__actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      width: min(100%, 350px);
      max-width: calc(100vw - 28px);
      justify-self: center;
      margin-top: 0;
    }

  .hero__actions .button {
      min-height: 56px;
      padding: 0 20px;
      font-size: 17px;
    }
}

h1,
.hero h1 {
  font-size: clamp(36px, 4vw, 68px);
  line-height: 0.96;
}

@media (max-width: 1240px) {
  .hero .section__inner {
      padding-top: calc(72px + var(--np-header-offset));
    }
}

@media (max-width: 740px) {
  .hero .section__inner {
      padding-top: calc(58px + var(--np-header-offset));
    }
}

.section.hero::before,
.section.hero::after {
  display: none;
}

.hero__visual,
.hero__visual::before,
.hero__visual::after {
  background: transparent;
  box-shadow: none;
  filter: none;
}

.hero__visual .product-shot {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.hero .eyebrow {
  text-transform: none;
}

@media (min-width: 741px) {
  .hero__copy,
    .hero__features,
    .hero__actions {
      transform: translateY(-18px);
    }

  .hero__visual {
      width: min(108%, 920px);
    }

  .hero__visual .product-shot {
      transform: translateX(-4%) rotate(-1.35deg) scale(1.08);
      transform-origin: center;
    }
}

@media (max-width: 740px) {
  .hero .molecule--tl {
      top: -54px;
      left: -78px;
      opacity: 0.12;
    }
}

.hero .section__inner {
  padding-top: calc(var(--np-header-offset) + clamp(40px, 5.4vh, 72px));
  padding-bottom: clamp(38px, 5.5vh, 70px);
}

.hero .eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(620px, 100%);
  margin: 0 0 clamp(14px, 1.25vw, 20px);
  color: var(--color-green);
  font-size: clamp(13px, 0.86vw, 16px);
  font-weight: 820;
  line-height: 1.25;
  text-transform: none;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(36px, 3.45vw, 60px);
  line-height: 0.96;
}

.hero .lead {
  max-width: 590px;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.48;
}

.hero__copy,
.hero__features,
.hero__actions {
  transform: none;
}

@media (min-width: 1241px) {
  .hero__inner {
      grid-template-columns: minmax(470px, 0.78fr) minmax(560px, 1fr);
      grid-template-areas:
        "copy visual"
        "features visual"
        "actions visual";
      column-gap: clamp(36px, 4.2vw, 76px);
      align-content: start;
      align-items: center;
    }

  .hero__copy {
      max-width: 610px;
    }

  .hero__features {
      grid-template-columns: repeat(2, minmax(190px, 1fr));
      max-width: 470px;
      margin-top: clamp(20px, 2.2vh, 28px);
    }

  .hero__actions {
      margin-top: clamp(22px, 2.7vh, 34px);
    }

  .hero__visual {
      justify-self: start;
      width: clamp(650px, 49vw, 960px);
    }

  .hero__visual .product-shot {
      transform: translateX(-2%) rotate(-1.15deg) scale(1.04);
      transform-origin: center;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .hero .section__inner {
      min-height: 100vh;
      min-height: 100svh;
      padding: calc(var(--np-header-offset) + 38px) clamp(28px, 4vw, 48px) 46px;
    }

  .hero__inner {
      grid-template-columns: minmax(390px, 0.86fr) minmax(470px, 1fr);
      grid-template-areas:
        "copy visual"
        "features visual"
        "actions visual";
      gap: 0 clamp(28px, 3.4vw, 44px);
      align-content: center;
      align-items: center;
    }

  .hero__copy {
      max-width: 500px;
    }

  .hero h1 {
      max-width: 510px;
      font-size: clamp(42px, 4.15vw, 52px);
    }

  .hero .lead {
      max-width: 500px;
      font-size: clamp(17px, 1.65vw, 19px);
      line-height: 1.5;
    }

  .hero__features {
      grid-template-columns: repeat(2, minmax(170px, 1fr));
      gap: 10px 14px;
      max-width: 430px;
      margin-top: 22px;
    }

  .hero-feature {
      min-height: 50px;
      padding: 11px 14px;
      font-size: 14px;
    }

  .hero__actions {
      margin-top: 24px;
    }

  .hero__visual {
      justify-self: start;
      width: min(55vw, 650px);
    }

  .hero__visual .product-shot {
      transform: translateX(0) rotate(-1deg) scale(1.02);
      transform-origin: center;
    }
}

@media (min-width: 741px) and (max-width: 980px) {
  .hero .section__inner {
      min-height: auto;
      padding: calc(var(--np-header-offset) + 42px) clamp(28px, 5vw, 56px) 60px;
    }

  .hero__inner {
      width: min(100%, 900px);
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas:
        "copy"
        "visual"
        "features"
        "actions";
      gap: 22px;
      align-content: start;
      align-items: start;
    }

  .hero__copy {
      max-width: 720px;
    }

  .hero h1 {
      max-width: 720px;
      font-size: clamp(42px, 6vw, 56px);
    }

  .hero .lead {
      max-width: 700px;
      font-size: clamp(17px, 2.1vw, 20px);
    }

  .hero__visual {
      width: min(100%, 780px);
      justify-self: center;
    }

  .hero__visual .product-shot {
      transform: rotate(-0.8deg) scale(1);
    }

  .hero__features {
      grid-template-columns: repeat(2, minmax(210px, 1fr));
      width: min(100%, 560px);
      max-width: none;
      justify-self: start;
      margin-top: 0;
    }

  .hero__actions {
      margin-top: 0;
    }
}

@media (max-width: 740px) {
  .hero .section__inner {
      padding-top: calc(var(--np-header-offset) + 42px);
      padding-bottom: 56px;
    }

  .hero .eyebrow {
      max-width: calc(100vw - 40px);
      margin-bottom: 14px;
      font-size: 12.5px;
      line-height: 1.25;
    }

  .hero h1 {
      max-width: calc(100vw - 40px);
      font-size: clamp(30px, 8vw, 37px);
      line-height: 0.97;
    }

  .hero .lead {
      max-width: calc(100vw - 40px);
      margin-top: 18px;
      font-size: 16.5px;
      line-height: 1.48;
    }

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

/* Request fixes: graphite hero title and safer tablet screenshot bounds. */
.hero h1 {
  color: #17201d;
}

@media (min-width: 981px) and (max-width: 1240px) {
  .hero__visual {
      justify-self: end;
      width: min(50vw, 620px);
      max-width: calc(100vw - 520px);
      overflow: visible;
    }

  .hero__visual .product-shot {
      transform: rotate(-0.8deg);
      transform-origin: center;
    }
}

@media (min-width: 741px) and (max-width: 980px) {
  .hero__visual {
      width: min(100%, 720px);
      max-width: calc(100vw - 56px);
      justify-self: center;
      overflow: visible;
    }

  .hero__visual .product-shot {
      transform: rotate(-0.65deg);
      transform-origin: center;
    }
}

@media (max-width: 740px) {
  .hero h1 {
      font-size: clamp(33px, 9.2vw, 42px);
    }
}

/* Match hero title and eyebrow styling to screen 4. */
.hero .eyebrow {
  display: flex;
  align-items: center;
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 820;
  text-transform: none;
}

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

.hero h1 {
  color: #0b1425;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: 0;
}

.hero h1 span {
  color: #008b4f;
}

@media (min-width: 741px) {
  .hero__inner {
      container-type: inline-size;
    }

  .hero .eyebrow {
      gap: 1.08cqw;
      margin: 0 0 1.55cqw;
      color: var(--green);
      font-family: var(--font-body);
      font-size: 1.02cqw;
      font-weight: 820;
      line-height: 1.2;
    }

  .hero .eyebrow::before {
      flex-basis: 2.87cqw;
      width: 2.87cqw;
      height: 0.18cqw;
    }

  .hero h1 {
      color: #0b1425;
      font-family: var(--font-body);
      font-size: 3.55cqw;
      font-weight: 800;
      line-height: 1.11;
      letter-spacing: 0;
      transform: scaleX(0.88);
      transform-origin: left top;
    }
}

@media (min-width: 981px) {
  .hero__copy,
    .hero__features,
    .hero__actions {
      transform: translateY(-16px);
    }

  .hero__visual {
      transform: translateY(-12px);
    }
}

@media (min-width: 1121px) {
  .hero .section__inner {
      padding-top: calc(var(--np-header-offset) + clamp(56px, 6vh, 82px));
    }

  .hero__copy,
    .hero h1 {
      max-width: 720px;
    }
}

@media (min-width: 741px) and (max-width: 1120px) {
  .hero .section__inner {
      padding: calc(var(--np-header-offset) + clamp(34px, 4.4vw, 48px)) clamp(34px, 5.4vw, 56px) 48px;
    }

  .hero__inner {
      container-type: normal;
      width: min(100%, 860px);
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas:
        "copy"
        "visual"
        "features"
        "actions";
      gap: clamp(14px, 2.2vw, 22px);
      align-content: start;
      align-items: start;
    }

  .hero__copy,
    .hero__features,
    .hero__actions,
    .hero__visual {
      transform: none;
    }

  .hero__copy {
      max-width: 740px;
    }

  .hero .eyebrow {
      gap: 12px;
      margin: 0 0 12px;
      font-size: clamp(12.5px, 1.45vw, 14px);
      line-height: 1.2;
    }

  .hero .eyebrow::before {
      flex: 0 0 34px;
      width: 34px;
      height: 2px;
    }

  .hero h1 {
      max-width: 740px;
      font-size: clamp(40px, 5.2vw, 52px);
      line-height: 1.04;
    }

  .hero .lead {
      max-width: 740px;
      margin-top: 16px;
      font-size: clamp(17.5px, 2vw, 20px);
      line-height: 1.45;
    }

  .hero__visual {
      width: min(100%, 760px);
      max-width: calc(100vw - 68px);
      justify-self: center;
    }

  .hero__visual .product-shot {
      transform: rotate(-0.65deg) scale(1.01);
      transform-origin: center;
    }

  .hero__features {
      grid-template-columns: repeat(2, minmax(220px, 1fr));
      width: min(100%, 610px);
      gap: 10px 14px;
    }

  .hero-feature {
      min-height: 54px;
      padding: 12px 15px;
      font-size: 15.5px;
    }

  .hero__actions {
      width: min(100%, 360px);
    }
}

@media (max-width: 740px) {
  .hero .eyebrow {
      gap: 12px;
      font-size: 13px;
      line-height: 1.2;
    }

  .hero .eyebrow::before {
      flex: 0 0 38px;
      width: 38px;
      height: 2px;
    }
}

@media (min-width: 1121px) {
  .hero .section__inner {
      padding-top: calc(var(--np-header-offset) + clamp(124px, 12vh, 156px));
    }
}

@media (min-width: 741px) and (max-width: 1120px) {
  .hero .section__inner {
      padding-top: calc(var(--np-header-offset) + clamp(86px, 8.8vw, 102px));
    }
}

/* Final adaptive guard: keep the approved desktop intact, but force the
   tablet/mobile hero back into a predictable centered flow. */
@media (min-width: 741px) and (max-width: 1120px) {
  .hero__features,
    .hero__actions {
      justify-self: center;
      margin-left: auto;
      margin-right: auto;
    }
}

@media (max-width: 740px) {
  .hero .section__inner {
      padding: calc(var(--np-header-offset) + 78px) 20px 56px;
    }

  .hero__inner {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas:
        "copy"
        "visual"
        "features"
        "actions";
      width: 100%;
      max-width: 100%;
      gap: 20px;
      justify-items: center;
      align-content: start;
      align-items: start;
      overflow: hidden;
    }

  .hero__copy {
      width: 100%;
      max-width: 100%;
      justify-self: stretch;
    }

  .hero h1,
    .hero .lead,
    .hero .eyebrow {
      max-width: 100%;
    }

  .hero__visual {
      display: block;
      width: min(100%, 360px);
      max-width: calc(100vw - 40px);
      min-width: 0;
      margin: 0 auto;
      justify-self: center;
      overflow: visible;
      visibility: visible;
      opacity: 1;
      transform: none;
    }

  .hero__visual .product-shot {
      display: block;
      width: 100%;
      max-width: none;
      height: auto;
      visibility: visible;
      opacity: 1;
      transform: rotate(-0.6deg);
      transform-origin: center;
    }

  .hero__features {
      width: min(100%, 350px);
      max-width: calc(100vw - 40px);
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 0 auto;
      justify-self: center;
    }

  .hero-feature {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

  .hero__actions {
      display: grid;
      grid-template-columns: 1fr;
      width: min(100%, 350px);
      max-width: calc(100vw - 40px);
      gap: 12px;
      margin: 0 auto;
      justify-self: center;
    }

  .hero__actions .button {
      width: 100%;
      justify-content: center;
    }
}
