/* ============================================================
   Mynt Education AGM 2026 microsite
   Styled to match the mynt.sg brand system:
     - Bricolage Grotesque (headings) + Plus Jakarta Sans (body)
     - emerald #14c386 brand, deep navy #0a0f2c ink, indigo #3b30d9
       accent, warm off-white #fffdfb background
     - pill buttons, lavender/indigo eyebrow chips, soft pastel
       hero gradient, white rounded cards, dark-navy doc top bar

   The five document pages keep their own embedded print styles;
   this file adds the landing chrome, the shared doc top bar, and a
   mobile-friendly override so the A4 sheets read well on a phone.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --brand: #14c386;        /* Mynt emerald */
  --brand-press: #10ad77;  /* emerald, pressed/hover */
  --green-deep: #0c7a50;   /* deep green, labels & links */
  --ink: #0a0f2c;          /* deep navy, headings & body */
  --muted: #5b6275;        /* muted body text */
  --indigo: #3b30d9;       /* accent */
  --indigo-soft: #ecedfe;  /* eyebrow chip background */
  --bg: #fffdfb;           /* warm off-white */
  --card: #ffffff;
  --border: #ecebe5;       /* warm hairline */
  --mint-soft: rgba(20, 195, 134, .14);
  --shadow: 0 1px 2px rgba(10,15,44,.04), 0 10px 30px rgba(10,15,44,.07);
  --font-head: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* ============================ LANDING ============================ */

body.agm-home {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---- Password gate ---- */
.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 14% -5%, rgba(99, 91, 232, .16), transparent 60%),
    radial-gradient(820px 520px at 96% 12%, rgba(20, 195, 134, .15), transparent 55%),
    radial-gradient(760px 520px at 82% 108%, rgba(255, 168, 140, .16), transparent 55%),
    var(--bg);
  z-index: 100;
}
/* faint floating brand shapes */
.gate::before,
.gate::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  filter: blur(.2px);
  opacity: .5;
  pointer-events: none;
}
.gate::before {
  width: 150px; height: 150px;
  top: 14%; left: 9%;
  background: linear-gradient(135deg, rgba(20,195,134,.5), rgba(120,200,255,.35));
  transform: rotate(20deg);
}
.gate::after {
  width: 120px; height: 120px;
  bottom: 16%; right: 12%;
  background: linear-gradient(135deg, rgba(255,180,150,.5), rgba(255,140,170,.3));
  transform: rotate(35deg);
}
.gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 392px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 30px;
  text-align: center;
}
.gate-mark {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .01em;
  font-size: 16px;
}
.gate-mark small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--green-deep);
  margin-top: 4px;
}
.gate-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 20px 0 6px;
}
.gate-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
}
.gate input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfbf9;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gate input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20,195,134,.18);
}
.gate button {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.gate button:hover { background: var(--brand-press); }
.gate button:active { transform: translateY(1px); }
.gate-error {
  min-height: 18px;
  margin-top: 14px;
  font-size: 13px;
  color: #c0392b;
}

/* ---- Site (revealed after unlock) ---- */
.site { max-width: 980px; margin: 0 auto; padding: 36px 20px 60px; }
.site[hidden] { display: none; }

.masthead {
  position: relative;
  text-align: center;
  padding: 40px 20px 34px;
  margin-bottom: 30px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 12% -20%, rgba(99,91,232,.14), transparent 60%),
    radial-gradient(700px 340px at 92% -10%, rgba(20,195,134,.16), transparent 58%),
    radial-gradient(620px 320px at 78% 120%, rgba(255,168,140,.14), transparent 58%),
    #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.masthead .mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: .02em;
}
.masthead .mark small {
  display: block;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--green-deep);
  margin-top: 4px;
}
.masthead h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
}
.masthead .tagline {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---- Meeting banner ---- */
.meeting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}
.meeting .mi { display: flex; flex-direction: column; }
.meeting .mi .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
}
.meeting .mi .v { font-size: 15px; font-weight: 600; }
.meeting .join {
  margin-left: auto;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--brand);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .05s ease;
}
.meeting .join:hover { background: var(--brand-press); }
.meeting .join:active { transform: translateY(1px); }

/* ---- Section label (Mynt-style eyebrow chip) ---- */
.section-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--indigo);
  font-weight: 700;
  background: var(--indigo-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

/* ---- Tiles ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(20,195,134,.5);
  box-shadow: 0 2px 6px rgba(10,15,44,.05), 0 16px 38px rgba(10,15,44,.11);
}
.tile .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--green-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tile h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.tile p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}
.tile .go {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
}

.site-footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ====================== SHARED DOC TOP BAR ====================== */
/* Linked from each document page (which keeps its own sheet styles). */
.agm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  box-shadow: 0 2px 12px rgba(10,15,44,.22);
}
.agm-topbar .agm-back {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: var(--brand);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .15s ease;
}
.agm-topbar .agm-back:hover { background: var(--brand-press); }
.agm-topbar .agm-brand {
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}

/* Make the A4 document sheets readable on small screens. */
@media (max-width: 760px) {
  .sheet {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 22px 16px !important;
    box-shadow: none !important;
  }
  html { background: #fff !important; }
  .agm-topbar .agm-brand { display: none; }
  .masthead h1 { font-size: 27px; }
}

/* Accessibility: respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
