.portal-page { color: #f6fbfa; background: #09191a; }
body.portal-page .clean-header.site-header { background: #081616; border-bottom: 1px solid #bcdccc21; }

.portal-hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(14px, min(3.5vw, 4svh), 62px) var(--gutter);
  background:
    radial-gradient(ellipse at 68% 91%, #62b24f26, transparent 44%),
    linear-gradient(90deg, #031317fa, #051c1ac9 40%, #05211629 79%, #05211638),
    #09191a url("assets/agri/dew-leaf-cta.jpg") center 38% / cover no-repeat;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr);
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
  width: min(1500px, 100%);
  margin-inline: auto;
}
.portal-copy { min-width: 0; }
.portal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(7px, 1.55svh, 14px);
  font-size: clamp(12px, 1.13vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
}
.portal-kicker::before { content: ""; width: clamp(25px, 3.7vw, 56px); height: 5px; border-radius: 4px; background: #df182f; }
.portal-copy h1 {
  margin: 0 0 5px;
  font-size: clamp(39px, min(5.9vw, 10.5svh), 96px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.056em;
}
.portal-copy h1 span { color: #d6f578; }
.portal-tagline { margin: 0 0 clamp(10px, min(2.3vw, 3.25svh), 33px); font-size: clamp(17px, min(2.05vw, 4svh), 32px); font-style: italic; line-height: 1.2; }
.portal-intro { max-width: 48ch; margin: 0; font-size: clamp(14px, min(1.44vw, 2.85svh), 22px); line-height: 1.44; color: #e1ece7; }
.portal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
  margin: clamp(11px, min(2.6vw, 3.65svh), 39px) 0;
  padding: 0;
  list-style: none;
}
.portal-features li {
  display: grid;
  grid-template-columns: clamp(22px, 3.15vw, 51px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.28vw, 20px);
  min-height: clamp(50px, min(6.8vw, 10.5svh), 110px);
  padding: clamp(7px, min(1.15vw, 1.75svh), 18px);
  border: 1px solid #86bd9e7d;
  border-radius: clamp(9px, 1.13vw, 17px);
  background: linear-gradient(120deg, #173e26ad, #061f1bd9);
}
.portal-features svg { width: 100%; height: auto; color: #d6f578; }
.portal-features strong { display: block; font-size: clamp(12px, min(1.27vw, 2.65svh), 20px); line-height: 1.25; }
.portal-features small { display: block; margin-top: 4px; color: #e1ece7; font-size: clamp(11px, .96vw, 15px); line-height: 1.3; }
.portal-launch { display: flex; align-items: center; gap: clamp(7px, 1vw, 15px); }
.portal-launch::before, .portal-launch::after { content: ""; flex: 1; height: 1px; background: #c1de72; }
.portal-launch p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 7px clamp(11px, 2vw, 30px);
  border: 1px solid #c1de72;
  border-radius: 40px;
  background: #061c17b0;
  color: #d6f578;
  font-size: clamp(15px, min(1.9vw, 3.3svh), 29px);
  font-style: italic;
}
.portal-launch svg { flex: 0 0 1.25em; width: 1.25em; height: 1.25em; }

.portal-devices { position: relative; min-width: 0; margin: 0; width: min(100%, 128svh); justify-self: end; container-type: inline-size; }
.portal-laptop {
  position: relative;
  width: 89%;
  margin-left: 4%;
  padding: 2.2% 1.6% 2.4%;
  border: clamp(1px, .18vw, 3px) solid #9ba8a8;
  border-radius: 4.1% 4.1% 2.4% 2.4% / 6.1% 6.1% 3.4% 3.4%;
  background: #070809;
  box-shadow: 0 18px 30px #000a;
}
.portal-laptop::before { content: ""; position: absolute; top: 1.05%; left: 50%; width: 1.2%; aspect-ratio: 1; border-radius: 50%; background: #263642; }
.portal-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 1.52;
  overflow: hidden;
  border-radius: 2%;
  background: #f5f8f5;
  color: #101b16;
}
.portal-screen-nav, .portal-phone-screen > img {
  background: #041411;
}
.portal-screen-nav {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 1.3cqw 3.5cqw;
  color: #fff;
  font-size: 1.2cqw;
  font-weight: 700;
}
.portal-screen-nav img { width: 15cqw; height: auto; margin-right: auto; }
.portal-screen-intro, .portal-phone-screen {
  color: #fff;
  background: linear-gradient(90deg, #041d16d9, #062c16a0 55%, #062c161a), #062c16 url("assets/agri/dew-leaf-cta.jpg") center / cover no-repeat;
}
.portal-screen-intro { display: grid; align-content: end; padding: 2cqw 9cqw 2cqw 4cqw; }
.portal-screen-intro p { margin: 0 0 1cqw; font-size: 1.63cqw; line-height: 1.25; }
.portal-screen-intro .portal-screen-title { margin-bottom: .3cqw; font-size: 4.2cqw; font-weight: 750; letter-spacing: -.045em; }
.portal-screen-shortcuts, .portal-screen-categories ul, .portal-phone ul { display: grid; margin: 0; padding: 0; list-style: none; }
.portal-screen-shortcuts, .portal-screen-categories ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8cqw; }
.portal-screen-shortcuts li {
  display: grid;
  gap: .3cqw;
  padding: .85cqw;
  border: 1px solid #90c29c37;
  border-radius: .9cqw;
  background: #0e3128ed;
  font-size: 1.25cqw;
}
.portal-screen-shortcuts li:first-child { color: #163c2a; background: #f6fcf8; }
.portal-screen-shortcuts svg { width: 2cqw; height: 2cqw; }
.portal-screen-shortcuts small { font-size: .99cqw; line-height: 1.24; }
.portal-screen-categories { padding: 1.5cqw 9cqw 1.8cqw 4cqw; font-size: 2cqw; }
.portal-screen-categories ul { margin-top: .9cqw; }
.portal-screen-categories li {
  display: grid;
  align-items: end;
  min-height: 9cqw;
  padding: .75cqw;
  border-radius: .9cqw;
  background: linear-gradient(to top, #061617f2, #06161708 76%), var(--category-photo) center / cover no-repeat;
  color: #fff;
  font-size: 1.3cqw;
  font-weight: 650;
  line-height: 1.1;
}
.portal-screen-categories li:last-child { background-position: center, 12% center; }
.portal-keyboard {
  position: absolute;
  inset: auto 2% -.6cqw 0;
  height: 2.1cqw;
  border-radius: 1% 1% 11% 11% / 20% 20% 80% 80%;
  background: linear-gradient(#bbbec0, #747e80 36%, #393e40 75%, #899294 85%, #292e30);
  box-shadow: 0 5px 10px #0008;
}
.portal-keyboard::after { content: ""; position: absolute; inset: 0 42% 55%; border-radius: 0 0 5px 5px; background: #404648; }
.portal-phone {
  position: absolute;
  right: 0;
  bottom: 1.8%;
  width: 20.5%;
  padding: .65cqw;
  border: clamp(1px, .16vw, 3px) solid #94a1a2;
  border-radius: 3.4cqw;
  background: #080b0d;
  box-shadow: 0 8px 14px #0009;
}
.portal-phone-screen { aspect-ratio: .49; overflow: hidden; border-radius: 2.65cqw; }
.portal-phone-screen > img { display: block; width: 100%; height: auto; padding: 2.2cqw 2cqw 1.2cqw; }
.portal-phone-screen p { margin: 1.45cqw 1.05cqw 1.2cqw; font-size: 2.02cqw; font-weight: 750; line-height: 1.12; }
.portal-phone ul { gap: .65cqw; padding-inline: 1.05cqw; }
.portal-phone li {
  display: flex;
  align-items: center;
  gap: .6cqw;
  padding: .72cqw;
  border-radius: .7cqw;
  background: #f8fcfa;
  color: #112b20;
  font-size: 1.22cqw;
}
.portal-phone svg { width: 1.7cqw; height: 1.7cqw; }

@media (max-width: 880px) and (orientation: portrait), (max-width: 650px) {
  .portal-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2.6svh, 26px); max-width: 630px; }
  .portal-devices { justify-self: center; width: min(100%, min(500px, 49svh)); }
}
@media (max-width: 430px) {
  .portal-features li { grid-template-columns: 19px minmax(0, 1fr); }
  .portal-features small { margin-top: 2px; }
  .portal-intro { line-height: 1.36; }
}
@media (max-width: 430px) and (max-height: 650px) {
  .portal-copy h1 { font-size: clamp(34px, 10.2vw, 42px); }
  .portal-features { gap: 6px; }
  .portal-features li { gap: 6px; padding: 6px; }
  .portal-launch p { padding-block: 5px; }
}
@media (max-width: 430px) and (max-height: 600px) {
  .portal-hero { padding: 10px 18px; }
  .portal-layout { gap: 8px; }
  .portal-devices { width: min(100%, 39svh); }
  .portal-features { margin-block: 8px; }
  .portal-features li { min-height: 44px; }
}
@media (max-height: 520px) and (orientation: landscape) and (min-width: 651px) {
  .portal-hero { padding-block: 10px; }
  .portal-kicker { margin-bottom: 4px; }
  .portal-copy h1 { font-size: clamp(33px, 9svh, 46px); }
  .portal-tagline { margin-bottom: 6px; }
  .portal-intro { font-size: 13px; line-height: 1.3; }
  .portal-features { margin-block: 8px; gap: 6px; }
  .portal-features li { grid-template-columns: 19px minmax(0, 1fr); min-height: 43px; gap: 6px; padding: 5px; }
  .portal-features small { margin-top: 2px; }
  .portal-launch p { padding-block: 4px; }
  .portal-devices { width: min(100%, 114svh); }
}
