:root {
  --ink: #14181d;
  --ink-2: #2b3038;
  --muted: #5b6470;
  --line: #e3e6ea;
  --bg: #fbfbf9;
  --panel: #f3f1ec;
  --accent: #1e4d3a;       /* deep clinical green */
  --accent-soft: #e6efe9;
  --accent-ink: #0f2d22;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #ffffff;
}
.brand-mark::before { width: 2px; height: 14px; }
.brand-mark::after  { width: 14px; height: 2px; }
.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.brand-sub {
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.top-nav a:hover { color: var(--accent); }
.top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}
.top-user.is-link {
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.top-user.is-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.top-signout {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.top-signout:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #ffffff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: #7ec095;
  border-radius: 50%;
}
.eyebrow.amber .dot { background: #e0b34a; }
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: #ffffff;
  color: var(--ink);
}
.btn-primary:hover { background: #f4f1ea; }
.btn-ghost {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover { background: var(--accent-ink); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-card h3 {
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: rgba(255,255,255,0.85); }
.status-row .value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126, 192, 149, 0.15);
  color: #b5dcc1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill .dot { width: 6px; height: 6px; background: #7ec095; border-radius: 50%; }
.pill.amber {
  background: rgba(224, 179, 74, 0.15);
  color: #ecd296;
}
.pill.amber .dot { background: #e0b34a; }

/* ---------- Steps (numbered process) ---------- */
.step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(126, 192, 149, 0.2);
  color: #b5dcc1;
  display: grid; place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}
.step-body {
  font-size: 14px;
  line-height: 1.5;
}
.step-body strong {
  display: block;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 2px;
}
.step-body span {
  color: rgba(255,255,255,0.65);
}

/* ---------- Section common ---------- */
section.block {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}
.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ---------- Guidelines ---------- */
.guidelines {
  background: var(--panel);
}
.guideline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gcard {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gcard:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.gcard .num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.gcard h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.gcard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.gcard .more {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pcard {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 148px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pcard:hover {
  border-color: var(--accent);
  background: #ffffff;
}
.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.pcode {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pstatus {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}
.pstatus.gray { color: var(--muted); }
.pcard h4 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
}
.ploc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.pcard .open {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Access packages (iframe + fallback) ---------- */
.packages {
  background: var(--panel);
}
.frame-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  min-height: 540px;
}
.frame-wrap iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}
.frame-fallback {
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.frame-fallback h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0;
}
.frame-fallback p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.6;
}
.frame-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.frame-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.frame-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.frame-note a:hover { text-decoration: underline; }

/* ---------- Support strip ---------- */
.support {
  background: var(--bg);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sitem h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.sitem p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.sitem a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.sitem a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 36px 0;
  font-size: 13px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-left: 22px;
}
footer a:hover { color: #ffffff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .guideline-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .top-nav { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .guideline-grid, .projects-grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
  .frame-wrap iframe { height: 480px; }
}
