/* Portal Pendidikan v166 — lightweight landing download experience */

.hero-actions .button.button-primary {
  border: 1px solid rgba(23, 77, 64, 0.12);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 13px 30px rgba(42, 76, 67, 0.09);
}

.hero-actions .button.button-primary:hover {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 18px 36px rgba(42, 76, 67, 0.14);
}

.hero-actions .button.button-join {
  border-color: transparent;
  color: #fff;
  background: var(--green);
  box-shadow: 0 13px 30px rgba(7, 140, 114, 0.24);
}

.hero-actions .button.button-join:hover {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 19px 37px rgba(7, 140, 114, 0.3);
}

.hero-actions .button-join .play-icon {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.95);
}

.download-section {
  padding-top: 105px;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.download-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 590px;
  padding: clamp(38px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 40px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(111, 226, 196, 0.32),
      transparent 34%
    ),
    radial-gradient(
      circle at 48% 110%,
      rgba(135, 176, 255, 0.2),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      rgba(248, 253, 251, 0.95),
      rgba(235, 249, 244, 0.86)
    );
  box-shadow:
    0 35px 90px rgba(31, 76, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  isolation: isolate;
  contain: layout paint;
}

.download-shell.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.download-shell::before,
.download-shell::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.download-shell::before {
  top: -190px;
  right: -150px;
  width: 430px;
  height: 430px;
  border: 1px dashed rgba(7, 140, 114, 0.16);
}

.download-shell::after {
  bottom: -120px;
  left: 34%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.48);
  filter: blur(6px);
}

.download-copy {
  position: relative;
  z-index: 4;
}

.download-copy h2 {
  max-width: 600px;
  margin: 14px 0 18px;
  font-size: clamp(36px, 4.1vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.057em;
}

.download-copy h2 span {
  color: var(--green);
}

.download-copy > p {
  max-width: 550px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.download-platform {
  display: inline-grid;
  grid-template-columns: 27px auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 89, 73, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(41, 85, 72, 0.06);
}

.download-platform.is-ready {
  border-color: rgba(7, 140, 114, 0.18);
  background: rgba(236, 250, 246, 0.84);
}

.download-platform > svg,
.download-platform .web-platform-icon {
  width: 25px;
  height: 25px;
  color: #087f69;
  fill: currentColor;
}

.download-platform .web-platform-icon {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e5f4ff;
  color: #2977bd;
  font-size: 17px;
  font-weight: 800;
}

.download-platform > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.download-platform small {
  color: #85928e;
  font-size: 6px;
  font-weight: 700;
}

.download-platform strong {
  font-size: 9px;
  letter-spacing: -0.02em;
}

.playstore-mark .play-a {
  fill: #28a866;
}
.playstore-mark .play-b {
  fill: #f4b742;
}
.playstore-mark .play-c {
  fill: #4d8df5;
}
.playstore-mark .play-d {
  fill: #e85b66;
}

.download-main-button {
  display: inline-grid;
  grid-template-columns: 40px 1fr 34px;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  min-height: 66px;
  margin-top: 24px;
  padding: 7px 9px 7px 10px;
  border: 0;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, #079478, #05715d);
  box-shadow:
    0 18px 36px rgba(7, 140, 114, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.download-main-button:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 45px rgba(7, 140, 114, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.download-main-button:focus-visible {
  outline: 3px solid rgba(7, 140, 114, 0.24);
  outline-offset: 4px;
}

.download-button-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 19px;
  font-weight: 800;
}

.download-main-button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.download-main-button small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 6px;
  font-weight: 700;
}

.download-main-button strong {
  font-size: 12px;
  letter-spacing: -0.02em;
}

.download-main-button > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--green-dark);
  background: #fff;
  font-size: 14px;
  font-style: normal;
  transition: transform 0.25s ease;
}

.download-main-button:hover > i {
  transform: translateX(3px);
}

.download-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #788681;
  font-size: 7px;
  font-weight: 600;
}

.download-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #11ab84;
  box-shadow: 0 0 0 4px rgba(17, 171, 132, 0.09);
}

.download-visual {
  --download-x: 0px;
  --download-y: 0px;
  position: relative;
  z-index: 3;
  min-height: 430px;
  border-radius: 35px;
  perspective: 900px;
  transform-style: preserve-3d;
}

.download-visual::before {
  position: absolute;
  inset: 8% 3% 5%;
  z-index: -2;
  border-radius: 42%;
  background: rgba(61, 199, 164, 0.2);
  filter: blur(38px);
  content: "";
}

.download-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 30px 65px rgba(25, 77, 63, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translate3d(var(--download-x), var(--download-y), 0) rotateY(-2deg);
  transition: transform 0.18s ease-out;
}

.download-visual.is-pointer-active img {
  will-change: transform;
}

.download-visual-orbit {
  position: absolute;
  z-index: -1;
  top: -28px;
  right: -25px;
  width: 170px;
  height: 170px;
  border: 1px dashed rgba(7, 140, 114, 0.21);
  border-radius: 50%;
}

.download-visual-orbit::before,
.download-visual-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.download-visual-orbit::before {
  top: 16px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #68d9bc;
  box-shadow: 0 0 0 8px rgba(104, 217, 188, 0.13);
}

.download-visual-orbit::after {
  right: 5px;
  bottom: 33px;
  width: 8px;
  height: 8px;
  background: #7f9deb;
}

.device-float {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  color: #43514d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 13px 28px rgba(35, 77, 65, 0.14);
  font-size: 7px;
  font-weight: 800;
}

.device-float svg,
.device-float i {
  width: 17px;
  height: 17px;
  color: #087f69;
  fill: currentColor;
  font-style: normal;
}

.device-float i {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e4f6f0;
}

.device-float-windows {
  top: 29px;
  left: -18px;
}

.device-float-mobile {
  right: -15px;
  bottom: 75px;
}

.device-float-web {
  bottom: -15px;
  left: 19%;
}

body.download-modal-open {
  overflow: hidden;
}

.download-modal[hidden],
.download-modal-status[hidden] {
  display: none;
}

.download-modal {
  position: fixed;
  z-index: 320;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(4, 25, 20, 0.56);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  transition: opacity 0.3s ease;
}

.download-modal-panel {
  position: relative;
  z-index: 1;
  width: min(930px, 100%);
  max-height: min(790px, calc(100dvh - 44px));
  padding: 36px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  outline: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at 94% 0%,
      rgba(104, 225, 194, 0.27),
      transparent 34%
    ),
    radial-gradient(
      circle at 4% 100%,
      rgba(139, 176, 255, 0.2),
      transparent 32%
    ),
    rgba(250, 253, 252, 0.95);
  box-shadow:
    0 45px 120px rgba(3, 31, 24, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(26px) scale(0.94) rotateX(4deg);
  transform-origin: center;
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  transition:
    opacity 0.34s ease,
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.download-modal.is-open .download-modal-backdrop {
  opacity: 1;
}

.download-modal.is-open .download-modal-panel {
  opacity: 1;
  transform: none;
}

.download-modal-close {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(18, 76, 62, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 9px 22px rgba(34, 73, 62, 0.08);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.download-modal-close:hover {
  transform: rotate(6deg) scale(1.05);
  background: #fff;
}

.download-modal-close span {
  display: block;
  grid-area: 1 / 1;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #4c5b57;
}

.download-modal-close span:first-child {
  transform: rotate(45deg);
}
.download-modal-close span:last-child {
  transform: rotate(-45deg);
}

.download-modal-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 17px;
  padding-right: 52px;
}

.download-modal-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #1bb590, #067c66);
  box-shadow:
    0 18px 38px rgba(7, 140, 114, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 27px;
  font-weight: 800;
}

.download-modal-heading h2 {
  margin: 5px 0 5px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.download-modal-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 31px;
}

.download-choice {
  --choice-accent: #078c72;
  --choice-soft: #e4f7f1;
  position: relative;
  display: grid;
  grid-template-rows: 58px 1fr 34px;
  align-items: center;
  min-height: 238px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(7, 140, 114, 0.12);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 100% 0%,
      color-mix(in srgb, var(--choice-accent) 15%, transparent),
      transparent 43%
    ),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 15px 38px
    color-mix(in srgb, var(--choice-accent) 8%, transparent);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.download-choice-android {
  --choice-accent: #417bd0;
  --choice-soft: #ebf2ff;
}

.download-choice-apk {
  --choice-accent: #087d67;
  --choice-soft: #e2f6f0;
}

.download-choice-apk .download-choice-icon b {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.download-choice-web {
  --choice-accent: #7956c8;
  --choice-soft: #f1ebff;
}

@media (min-width: 701px) and (max-width: 980px) {
  .download-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-choice:hover {
  border-color: color-mix(in srgb, var(--choice-accent) 28%, white);
  box-shadow: 0 24px 46px
    color-mix(in srgb, var(--choice-accent) 16%, transparent);
  transform: translateY(-5px);
}

.download-choice:focus-visible {
  outline: 3px solid
    color-mix(in srgb, var(--choice-accent, var(--green)) 24%, transparent);
  outline-offset: 3px;
}

.download-choice-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  color: var(--choice-accent);
  background: var(--choice-soft);
  box-shadow: 0 12px 25px
    color-mix(in srgb, var(--choice-accent) 14%, transparent);
  font-size: 24px;
  font-weight: 800;
}

.download-choice-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.download-choice > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-self: end;
}

.download-choice small {
  color: #97a39f;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.download-choice strong {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: -0.035em;
}

.download-choice em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  line-height: 1.5;
}

.download-choice > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: end;
  justify-self: end;
  border-radius: 11px;
  color: var(--choice-accent);
  background: var(--choice-soft);
  font-size: 14px;
  font-style: normal;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.download-choice:hover > i {
  color: #fff;
  background: var(--choice-accent);
  transform: translateX(3px);
}

.download-modal-status {
  position: sticky;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  margin: 18px auto 0;
  padding: 10px 13px;
  border: 1px solid rgba(65, 123, 208, 0.14);
  border-radius: 15px;
  color: #244268;
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 14px 34px rgba(42, 80, 135, 0.14);
}

.download-modal-status > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #4b81d2;
  font-size: 12px;
}

.download-modal-status > div {
  display: flex;
  flex-direction: column;
}

.download-modal-status strong {
  font-size: 10px;
}

.download-modal-status small {
  margin-top: 2px;
  color: #667b96;
  font-size: 7px;
}

@media (max-width: 1020px) {
  .download-shell {
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    gap: 28px;
    padding: 45px 38px;
  }

  .download-visual {
    min-height: 390px;
  }
}

@media (max-width: 860px) {
  .download-shell {
    grid-template-columns: 1fr;
  }

  .download-copy {
    text-align: center;
  }

  .download-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .download-platforms,
  .download-note {
    justify-content: center;
  }

  .download-main-button {
    margin-right: auto;
    margin-left: auto;
  }

  .download-visual {
    width: min(650px, 100%);
    min-height: 460px;
    margin: 5px auto 0;
  }
}

@media (max-width: 700px) {
  .download-modal {
    align-items: end;
    padding: 9px;
  }

  .download-modal-panel {
    width: 100%;
    max-height: calc(100dvh - 18px);
    padding: 25px 17px 18px;
    border-radius: 28px;
    transform: translateY(45px) scale(0.97);
  }

  .download-modal-close {
    top: 15px;
    right: 15px;
  }

  .download-modal-heading {
    grid-template-columns: 56px 1fr;
    gap: 13px;
    padding-right: 36px;
  }

  .download-modal-mark {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 22px;
  }

  .download-modal-heading h2 {
    font-size: 28px;
  }

  .download-choice-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .download-choice {
    grid-template-columns: 50px 1fr 31px;
    grid-template-rows: 1fr;
    gap: 11px;
    min-height: 92px;
    padding: 12px;
    border-radius: 19px;
  }

  .download-choice-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .download-choice > span:nth-child(2) {
    align-self: center;
  }

  .download-choice > i {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .download-section {
    padding-top: 78px;
  }

  .download-shell {
    gap: 33px;
    min-height: auto;
    padding: 34px 20px 29px;
    border-radius: 29px;
  }

  .download-copy h2 {
    font-size: 36px;
  }

  .download-copy > p {
    font-size: 10px;
  }

  .download-platforms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .download-platform {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 5px;
    text-align: center;
  }

  .download-platform > span:last-child {
    align-items: center;
  }

  .download-main-button {
    width: 100%;
    min-width: 0;
  }

  .download-note {
    font-size: 6px;
  }

  .download-visual {
    min-height: 320px;
  }

  .download-visual img {
    border-radius: 23px;
  }

  .device-float {
    padding: 0 9px;
    font-size: 6px;
  }

  .device-float-windows {
    top: 18px;
    left: -8px;
  }

  .device-float-mobile {
    right: -6px;
    bottom: 52px;
  }

  .device-float-web {
    bottom: -10px;
  }
}

@media (max-width: 390px) {
  .download-copy h2 {
    font-size: 32px;
  }

  .download-platform strong {
    font-size: 8px;
  }

  .download-visual {
    min-height: 270px;
  }

  .device-float-mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-visual img {
    transform: none;
    transition: none;
  }
}
