/* ============================================================
   Sublime LMS — Alumni Portal showcase (/alumni-portal)
   Builds on site.css + platform.css + platform-pages.css; adds
   only the screenshot frames, the surfaces row, the feature
   tour tabs and the benefits pair. Same tokens, same language.
   ============================================================ */

/* ---------- keyboard focus (the shared sheets define none) ---------- */
[data-page="alumni-portal"] main a:focus-visible,
[data-page="alumni-portal"] main button:focus-visible,
.ap-panel:focus-visible {
  outline: 2px solid var(--color-violet-600);
  outline-offset: 3px;
  border-radius: var(--radius-md, 10px);
}
[data-page="alumni-portal"] .final-cta a:focus-visible { outline-color: #fff; }
html { scroll-padding-top: calc(88px + var(--sl-annc-h, 0px)); }

/* ---------- screenshot frame ---------- */
.ap-browser {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.ap-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: var(--color-mist);
  border-bottom: 1px solid var(--border);
}
.ap-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.ap-dots span { width: 9px; height: 9px; border-radius: 999px; background: #FCA5A5; }
.ap-dots span:nth-child(2) { background: #FCD34D; }
.ap-dots span:nth-child(3) { background: #86EFAC; }
.ap-url {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1;
  padding: 4px 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-url i, .ap-url svg { width: 11px; height: 11px; flex-shrink: 0; }
/* width/height attributes reserve the box, so nothing shifts while it loads */
.ap-browser img { display: block; width: 100%; height: auto; background: var(--color-mist); }

/* ---------- hero art ---------- */
.ap-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
.ap-hero-art { position: relative; min-width: 0; padding: 0 0 36px 0; }
.ap-hero-browser { box-shadow: 0 30px 80px rgba(46, 16, 101, .18), var(--shadow-lg); }
.ap-phone {
  position: absolute; right: -14px; bottom: 0; margin: 0;
  width: 25%; min-width: 120px; max-width: 168px;
  aspect-ratio: 780 / 1688;
  border: 5px solid var(--color-graphite);
  border-radius: 22px;
  background: var(--color-graphite);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pp-float 6s ease-in-out infinite;
}
.ap-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }
.ap-sample {
  position: absolute; left: 14px; bottom: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--fg-body);
}
.ap-sample i, .ap-sample svg { width: 13px; height: 13px; color: var(--color-violet-600); }

/* ---------- three surfaces ---------- */
.ap-surfaces {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin-top: 24px;
}
.ap-surface {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 14px 14px 24px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ap-surface:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ap-surface .ap-browser { box-shadow: none; border-radius: var(--radius-lg); }
.ap-surface-body { padding: 18px 10px 0; }
.ap-surface-body .chip i, .ap-surface-body .chip svg { width: 11px; height: 11px; }
.ap-surface h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 650;
  letter-spacing: -0.01em; color: var(--fg); margin: 12px 0 8px;
}
.ap-surface p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }

/* ---------- key features ---------- */
.ap-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 24px;
}
.ap-features .feat { padding: 24px 22px; min-width: 0; }
.ap-features .feat h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 650;
  color: var(--fg); margin: 0 0 8px; letter-spacing: -0.005em;
}
.ap-features .feat p { margin: 0; font-size: 14px; line-height: 1.6; }
.feat-ic svg { width: 20px; height: 20px; }

/* ---------- feature tour (tabs) ---------- */
.ap-tour { margin-top: 24px; }
.ap-tabs {
  display: none;               /* shown once alumni-portal.js wires them */
  flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 0 28px;
}
.ap-tour.is-tabbed .ap-tabs { display: flex; }
.ap-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  font: 600 14px/1 var(--font-sans); color: var(--fg-body);
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.ap-tab i, .ap-tab svg { width: 16px; height: 16px; }
.ap-tab:hover { border-color: var(--color-violet-300); background: var(--color-violet-50); }
.ap-tab[aria-selected="true"] {
  background: var(--color-violet-600); border-color: var(--color-violet-600); color: #fff;
  box-shadow: var(--shadow-violet);
}
.ap-panel {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: 40px; align-items: center;
}
/* without JS every panel stays on the page, one under the other */
.ap-panel + .ap-panel { margin-top: 56px; }
.ap-tour.is-tabbed .ap-panel + .ap-panel { margin-top: 0; }
.ap-tour.is-tabbed .ap-panel[hidden] { display: none; }
.ap-tour.is-tabbed .ap-panel.is-entering { animation: ap-panel-in .45s var(--ease-out) both; }
@keyframes ap-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ap-panel-copy { min-width: 0; }
.ap-panel-copy h3 {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin: 0 0 14px; text-wrap: balance;
}
.ap-panel-copy p { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--fg-body); }
.ap-panel-copy .role-feat { grid-template-columns: 1fr; margin: 0; }
.ap-panel-copy .role-feat li { align-items: flex-start; line-height: 1.4; }
.ap-panel-copy .role-feat i, .ap-panel-copy .role-feat svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---------- benefits ---------- */
.ap-benefits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; margin-top: 24px;
}
.ap-benefit {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 30px 28px; min-width: 0;
}
.ap-benefit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ap-benefit-head .feat-ic { margin: 0; flex-shrink: 0; }
.ap-benefit h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); margin: 0; }
.ap-benefit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ap-benefit li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--fg-body); }
.ap-benefit li > i, .ap-benefit li > svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--color-emerald-600);
}
.ap-benefit li b { color: var(--fg); font-weight: 650; }
.ap-footnote {
  max-width: 820px; margin: 32px auto 0; text-align: center;
  font-size: 14px; line-height: 1.7; color: var(--fg-muted);
}
.ap-footnote i, .ap-footnote svg {
  display: inline-block; width: 16px; height: 16px; margin-right: 6px;
  vertical-align: -3px; color: var(--color-violet-600);
}
.ap-footnote a { color: var(--color-violet-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ap-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-hero-art { max-width: 720px; margin: 0 auto; width: 100%; }
  .ap-phone { right: 0; }
  .ap-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ap-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ap-panel-copy { max-width: 640px; }
  .ap-benefits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .ap-surfaces, .ap-features { grid-template-columns: minmax(0, 1fr); }
  /* a swipeable single row keeps five tabs from stacking into a wall */
  .ap-tour.is-tabbed .ap-tabs {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: -20px; margin-right: -20px; padding: 4px 20px;
  }
  .ap-tabs::-webkit-scrollbar { display: none; }
  /* phones get the portal's own mobile layout (the <picture> source), so the
     frame narrows to a phone's width instead of stretching it */
  .ap-panel .ap-browser { width: 100%; max-width: 360px; margin: 0 auto; }
  .ap-tab { flex-shrink: 0; }
  .ap-benefit { padding: 24px 20px; }
  .ap-phone { width: 24%; min-width: 84px; border-width: 4px; border-radius: 16px; }
  .ap-phone img { border-radius: 11px; }
  .ap-hero .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .ap-url { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-phone, .ap-tour.is-tabbed .ap-panel.is-entering { animation: none !important; }
  .ap-surface, .ap-tab { transition: none; }
  html { scroll-behavior: auto; }
}
