@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue: #00729c;
  --blue-deep: #00435c;
  --coral: #f47c51;
  --coral-soft: #fff1eb;
  --sky: #eff9fe;
  --ink: #173440;
  --muted: #607681;
  --line: #dce9ee;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  background: #eef6f8;
  color: var(--ink);
  font-family: 'Poppins', Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 85%, rgba(244, 124, 81, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8fcfd 0%, #eef6f8 100%);
}

button, input { font: inherit; }

main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-shell {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 38px clamp(34px, 5vw, 76px) 68px;
  color: var(--white);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url('/__charte/campus.jpg');
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(0, 67, 92, 0.96) 5%, rgba(0, 79, 108, 0.87) 48%, rgba(0, 55, 76, 0.91) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent);
}

.hero-shell::before,
.hero-shell::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40% 60% 62% 38%;
  transform: rotate(28deg);
}

.hero-shell::before {
  width: 420px;
  height: 420px;
  right: -235px;
  top: 23%;
}

.hero-shell::after {
  width: 230px;
  height: 230px;
  left: -150px;
  bottom: 8%;
  background: rgba(244, 124, 81, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  padding: 6px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.95);
  object-fit: contain;
}

.brand span { display: flex; flex-direction: column; }

.brand strong {
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.platform-pill {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-copy {
  max-width: 680px;
  margin-top: clamp(54px, 8vh, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--coral);
}

.eyebrow.coral { color: var(--coral); }

.hero-copy h1 {
  max-width: 690px;
  margin: 20px 0 22px;
  font-family: 'Dosis', sans-serif;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.charter-card {
  width: min(calc(100% - 56px), 820px);
  align-self: start;
  justify-self: center;
  margin: 28px;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(0, 114, 156, 0.12);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(0, 67, 92, 0.12);
}

.charter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.charter-heading h2 {
  max-width: 510px;
  margin: 12px 0 0;
  color: var(--blue-deep);
  font-family: 'Dosis', sans-serif;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.05;
}

.reading-time {
  flex: none;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 38px;
}

.rule {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.rule-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral);
  font-family: 'Dosis', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.rule h3 {
  margin: 1px 0 6px;
  color: var(--blue-deep);
  font-family: 'Dosis', sans-serif;
  font-size: 20px;
}

.rule p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.full-charter {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.full-charter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 2px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.full-charter summary::after { content: '+'; color: var(--coral); font-size: 24px; font-weight: 400; }
.full-charter[open] summary::after { content: '−'; }

.full-charter-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  padding: 2px 0 24px;
}

.full-charter-content h3 {
  margin: 0 0 5px;
  color: var(--blue-deep);
  font-family: 'Dosis', sans-serif;
  font-size: 17px;
}

.full-charter-content p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.login-note {
  display: flex;
  gap: 13px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--sky);
}

.login-note-mark {
  display: grid;
  flex: none;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.login-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-deep);
  font-size: 11px;
}

.login-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.acceptance { margin-top: 24px; }

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.6;
}

.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.5px solid #b5cbd3;
  border-radius: 7px;
  background: white;
  transition: 160ms ease;
}

.check-row input:focus-visible + .custom-check {
  outline: 3px solid rgba(0, 114, 156, 0.2);
  outline-offset: 2px;
}

.check-row input:checked + .custom-check { border-color: var(--blue); background: var(--blue); }
.check-row input:checked + .custom-check::after { content: '✓'; color: white; font-size: 13px; font-weight: 700; }

.destination-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.destination-heading .eyebrow { margin: 0; }

.destination-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 12px;
}

.destination-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #cbdde4;
  border-radius: 15px;
  background: white;
  color: var(--blue-deep);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.destination-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.destination-card strong { font-size: 12px; }
.destination-card small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.destination-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 67, 92, 0.1); }
.destination-card:focus-visible { outline: 3px solid rgba(0, 114, 156, 0.22); outline-offset: 3px; }
.destination-card:disabled { cursor: not-allowed; opacity: 0.42; }
.destination-card--pve:hover:not(:disabled) { border-color: var(--blue); }
.destination-card--grafana:hover:not(:disabled) { border-color: var(--coral); }
.destination-card--helpdesk:hover:not(:disabled) { border-color: #5868b8; }

.destination-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.destination-card--grafana .destination-icon { background: var(--coral); }
.destination-card--helpdesk .destination-icon { background: #5868b8; }

.access-actions {
  display: grid;
  gap: 11px;
  margin-top: 17px;
}

.access-button {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  padding: 15px 17px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.access-button--m365 {
  border: 0;
  background: linear-gradient(135deg, var(--blue) 0%, #005f83 100%);
  box-shadow: 0 13px 30px rgba(0, 114, 156, 0.2);
  color: white;
}

.access-button--admin {
  border: 1px solid #cbdde4;
  background: white;
  color: var(--blue-deep);
}

.access-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.access-button--m365:hover:not(:disabled) {
  box-shadow: 0 16px 34px rgba(0, 114, 156, 0.27);
}

.access-button--admin:hover:not(:disabled) {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 67, 92, 0.1);
}

.access-button:focus-visible {
  outline: 3px solid rgba(0, 114, 156, 0.22);
  outline-offset: 3px;
}

.access-button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.42;
}

.button-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.button-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.button-copy small {
  color: inherit;
  font-size: 9px;
  line-height: 1.4;
  opacity: 0.74;
}

.button-arrow {
  justify-self: end;
  font-size: 18px;
}

.microsoft-mark {
  display: grid;
  width: 22px;
  height: 22px;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.microsoft-mark i { display: block; }
.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }

.admin-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: var(--sky);
  color: var(--blue);
  font-family: 'Dosis', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.preview-confirmation {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #edf9f2;
  color: #26704a;
  font-size: 10px;
  line-height: 1.5;
}

.admin-handoff {
  margin: 18px 0 0;
  border: 1px solid #b7d7df;
  border-radius: 14px;
  padding: 16px;
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.admin-handoff strong {
  display: block;
  font-size: 15px;
}

.admin-handoff p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-handoff-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #a7cbd6;
  border-radius: 11px;
  padding: 9px 13px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.admin-handoff-link--pve {
  border-color: var(--blue);
}

.admin-handoff-link--grafana {
  border-color: #f2ab90;
  color: #a74624;
}

.access-request {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdfe;
  overflow: hidden;
}

.access-request > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.access-request > summary::after {
  content: '+';
  color: var(--coral);
  font-size: 22px;
  font-weight: 400;
}

.access-request[open] > summary::after { content: '−'; }

.access-request-content {
  padding: 2px 18px 20px;
  border-top: 1px solid var(--line);
}

.access-request-content > div:first-child { padding-top: 18px; }

.access-request-content h3 {
  margin: 9px 0 5px;
  color: var(--blue-deep);
  font-family: 'Dosis', sans-serif;
  font-size: 22px;
}

.access-request-content p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.request-form {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 17px;
}

.request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.request-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 600;
}

.request-form input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cbdde4;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.request-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 156, 0.12);
}

.request-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.request-button:hover:not(:disabled) { background: var(--sky); }
.request-button:disabled { cursor: wait; opacity: 0.55; }

.request-status {
  padding: 10px 12px;
  border-radius: 10px;
}

.request-status--success { background: #edf9f2; color: #26704a !important; }
.request-status--error { background: #fff1eb; color: #a44628 !important; }

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: #8a9ca4;
  font-size: 9px;
}

@media (max-width: 1120px) {
  main { display: block; }
  .hero-shell { position: relative; min-height: 610px; }
  .hero-copy h1 { max-width: 760px; }
  .charter-card {
    width: auto;
    max-width: 880px;
    margin: -70px auto 36px;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 720px) {
  .hero-shell { min-height: 570px; padding: 24px 22px 100px; }
  .hero-copy { margin-top: 54px; }
  .platform-pill, .brand small { display: none; }
  .brand img { width: 50px; height: 50px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-copy > p { font-size: 13px; }
  .charter-card { margin: -58px 12px 20px; padding: 28px 21px; border-radius: 24px; }
  .charter-heading { display: block; }
  .reading-time { display: inline-flex; margin-top: 14px; }
  .rules-grid, .full-charter-content, .destination-grid { grid-template-columns: 1fr; }
  .destination-heading { display: block; }
  .destination-heading p { margin-top: 6px; }
  .request-fields { grid-template-columns: 1fr; }
  .portal-footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
