:root {
  --navy: #0b1135;
  --navy-soft: #171d49;
  --red: #d51a3b;
  --orange: #efa71c;
  --white: #ffffff;
  --text: #f8f8fb;
  --muted: #bfc3d5;
  --line: rgba(255,255,255,.18);
  --green: #35b86f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: #070c27;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100% - 28px, 492px);
  margin-inline: auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  padding: 18px 16px 20px;
  color: var(--white);
  text-align: center;
}

.share-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.share-button span { display: none; }
.share-button svg { width: 17px; height: 17px; }
.share-button:hover { background: rgba(255,255,255,.1); }
.share-button:active { transform: scale(.96); }

.brand-mark {
  width: 98px;
  height: 98px;
  margin: 3px auto 14px;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--white);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; transform: scale(3.18); }

.eyebrow { margin: 0 0 5px; color: var(--orange); font-size: .54rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font: 800 clamp(2.35rem, 12vw, 3rem)/1 "Montserrat", sans-serif; letter-spacing: .07em; }
.institution-name { margin: 8px 0 0; font: 700 clamp(.76rem, 3.6vw, .9rem)/1.42 "Montserrat", sans-serif; letter-spacing: .045em; text-transform: uppercase; }
.pillars { margin: 11px 0 0; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .02em; }
.pillars span { margin: 0 4px; color: var(--red); }
.support-copy { max-width: 355px; margin: 12px auto 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.instagram-handle { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--white); font-size: .75rem; font-weight: 700; text-decoration: none; }
.instagram-handle svg { width: 15px; height: 15px; }
.instagram-handle:hover span { text-decoration: underline; text-underline-offset: 4px; }

.links-section { padding-top: 7px; }
.enrollment-heading { margin: 0 3px 13px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.enrollment-heading h2 { margin: 4px 0 0; font: 700 1.04rem "Montserrat", sans-serif; }
.open-label { display: flex; align-items: center; gap: 7px; color: var(--orange); font-size: .57rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.link-list { display: grid; gap: 11px; }
.link-card {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 14px 15px 14px 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 10px;
  background: #f8f6f0;
  color: #151933;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--orange); box-shadow: 0 5px 0 rgba(0,0,0,.14); }
.link-card:active { transform: scale(.985); }

.link-card--primary { min-height: 90px; border-color: #f6bd4e; background: var(--orange); color: #12162e; }
.link-card--whatsapp { border-left: 5px solid var(--green); }

.card-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card-copy strong { font: 700 clamp(.9rem, 4vw, 1rem)/1.25 "Montserrat", sans-serif; letter-spacing: -.01em; }
.card-copy small { color: #626677; font-size: .69rem; line-height: 1.4; }
.link-card--primary .card-copy small { color: rgba(18,22,46,.68); }

.card-tag { width: fit-content; padding-bottom: 1px; border-bottom: 1px solid rgba(18,22,46,.48); font-size: .53rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(21,25,51,.18); border-radius: 50%; color: var(--red); font-size: .92rem; line-height: 1; transition: transform 150ms ease, background 150ms ease; }
.link-card--primary .card-arrow { border-color: rgba(18,22,46,.3); color: #12162e; }
.link-card:hover .card-arrow { transform: translateX(2px); background: rgba(213,26,59,.06); }

.journal-link {
  min-height: 63px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 30px;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}
.journal-link:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.journal-link:active { transform: scale(.985); }
.journal-link > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.journal-link small { color: var(--muted); font-size: .57rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.journal-link strong { font: 700 .79rem "Montserrat", sans-serif; }
.journal-arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--orange); font-size: .85rem; }

.footer { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 26px; padding: 20px 14px 0; border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); text-align: center; font-size: .62rem; line-height: 1.45; }
.footer strong { color: var(--white); font: 800 1rem "Montserrat", sans-serif; letter-spacing: .06em; }
.footer a { min-height: 32px; display: inline-flex; align-items: center; color: var(--white); font-weight: 700; text-decoration: none; }
.footer small { opacity: .65; }

.toast { position: fixed; z-index: 10; left: 50%; bottom: max(22px,env(safe-area-inset-bottom)); transform: translate(-50%,10px); padding: 10px 15px; border-radius: 8px; background: var(--white); color: var(--navy); font-size: .72rem; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.reveal { opacity: 0; animation: appear 300ms ease forwards; }
.reveal--1 { animation-delay: 20ms; }
.reveal--2 { animation-delay: 50ms; }
.reveal--3 { animation-delay: 80ms; }
.reveal--4 { animation-delay: 110ms; }
.reveal--5 { animation-delay: 140ms; }
.reveal--6 { animation-delay: 170ms; }
@keyframes appear { to { opacity: 1; } }

@media (max-width: 360px) {
  .page-shell { width: min(100% - 20px,510px); }
  .hero { padding-inline: 5px; }
  .brand-mark { width: 84px; height: 84px; }
  .link-card { padding-inline: 14px; }
}

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