/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  font-family: "Ping", sans-serif;
  overflow-y: auto;
  direction: rtl;
  background-color: var(--ui-bg);
}

/* Theme Tokens */
:root {
  --ui-bg: #f4f4f4;
}

/* Typography */
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Regular.woff2") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Medium.woff2") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Bold.woff2") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ping";
  src: url("fonts/PingAR+LT-Heavy.woff2") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Grade Layout */
body.grade-page {
  background: linear-gradient(135deg, #f1f5f9 0%, #e5f2e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
}

.grade-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.grade-container {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grade-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.grade-logo {
  width: 80px;
  height: auto;
}

.grade-header-text {
  text-align: center;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grade-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.grade-subtitle {
  font-size: 0.95rem;
  color: rgba(75, 85, 99, 0.9);
}

.service-status {
  display: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c53030;
  background: rgba(197, 48, 48, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.service-status--visible {
  display: block;
}

/* Grade Options */
.grade-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grade-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  text-decoration: none;
  color: #ffffff;
  background: #457028;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.grade-option--sixth {
  background: #143200;
}

.grade-option:hover,
.grade-option:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.18);
}

.grade-option:active {
  transform: scale(0.98);
}

.grade-option--disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.grade-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  flex-shrink: 0;
}

.grade-option__icon--ghost {
  opacity: 0;
}

.grade-option__arrow {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grade-option__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.grade-option__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.grade-option__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.grade-footer {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(75, 85, 99, 0.85);
}

@media (min-width: 640px) {
  .grade-option {
    padding: 1.25rem 1.5rem;
  }

  .grade-option__title {
    font-size: 1.6rem;
  }

  .grade-option__hint {
    font-size: 0.85rem;
  }
}

/* Mobile Download CTA */
.mobile-download {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  font-family: "Ping";
}

.mobile-download a {
  text-decoration: none;
  width: 100%;
  max-width: 250px;
  font-family: "Ping";
}

.mobile-download-btn {
  font-family: "Ping";
  cursor: pointer;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 0.75rem;
  background: white;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
