/* =========================================================================
 *  Python Tutor — page-layout styles
 *  -----------------------------------------------------------------------
 *  This file deliberately contains NO new design tokens. Every color,
 *  shadow, border, radius, and font is pulled from styles.css (the
 *  canonical CTWCAD theme). Everything below is page-layout glue for
 *  the python.ctwcad.com landing surface — hero, feature grid, footer.
 *
 *  All classes are namespaced .pt-* so they cannot collide with the
 *  .ct-* component classes used by ctwcad.com.
 * =======================================================================*/

.pt-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ct-bg);
  color: var(--ct-fg);
}

/* ---------- top bar ---------- */
.pt-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--ct-border-soft);
  background: var(--ct-bg-glass);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
}
.pt-topbar-right { display: flex; gap: 8px; align-items: center; }

.pt-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ct-fg);
}
.pt-brand-word {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 12px;
}
.pt-brand-btn {
  /* unset button defaults so the brand still looks identical when used as a nav button */
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
}

/* ---------- main column ---------- */
.pt-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

/* ---------- hero ---------- */
.pt-hero {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px;
  padding-bottom: 64px;
}
.pt-hero-eyebrow { margin-bottom: 4px; }
.pt-hero-h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ct-fg);
  max-width: 18ch;
}
.pt-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ct-fg-dim);
  max-width: 62ch;
  margin: 0;
}
.pt-hero-sub em { font-style: italic; color: var(--ct-fg); }
.pt-hero-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.pt-cta-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  /* Block the hover state on disabled secondary CTAs — without this the
     button still highlights on hover and reads as actionable. */
}
.pt-cta-disabled:hover {
  background: var(--ct-bg-elev);
  border-color: var(--ct-border);
}

/* ---------- feature row ---------- */
.pt-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 880px) {
  .pt-features { grid-template-columns: 1fr; }
}
.pt-feature {
  background: var(--ct-bg-elev);
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  padding: 20px 20px 22px;
  box-shadow: var(--ct-shadow-1);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s, transform 0.2s ease;
}
.pt-feature:hover {
  border-color: var(--ct-fg-mute);
  transform: translateY(-1px);
}
.pt-feature-eyebrow { margin-bottom: 2px; }
.pt-feature-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ct-fg);
  margin: 0;
}
.pt-feature-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ct-fg-dim);
  margin: 0;
}

/* ---------- "coming soon" placeholder route ---------- */
.pt-soon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 48px 0 24px;
}
.pt-soon-h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  font-weight: 600;
}
.pt-soon-sub {
  font-size: 15px;
  color: var(--ct-fg-dim);
  max-width: 56ch;
  margin: 0;
  line-height: 1.5;
}
.pt-soon-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}

/* ---------- footer ---------- */
.pt-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 20px 28px;
  border-top: 1px solid var(--ct-border-soft);
  background: var(--ct-bg);
}
.pt-footer-line { font-size: 11.5px; }
.pt-footer-link {
  font-size: 11.5px;
  color: var(--ct-fg-dim);
  border-bottom: 1px dashed var(--ct-border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.pt-footer-link:hover { color: var(--ct-accent); border-color: var(--ct-accent); }

/* ---------- spinner keyframe (used by desktop-signin.jsx) ----------
   Defined globally so any inline-styled spinner picks it up without
   needing its own <style> tag. Pure CSS, no JS animation lib. */
@keyframes pt-spin { to { transform: rotate(360deg); } }

/* ---------- Splash screen (first-session brandmark animation) -------- */
.pt-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Subtle teal halo behind the brandmark — same vibe as ctwcad.com's
     splash so the two surfaces feel related. */
  background:
    radial-gradient(circle at 50% 45%,
      oklch(from var(--ct-accent) l c h / 0.10) 0%,
      transparent 55%),
    var(--ct-bg);
}
.pt-splash-mark {
  color: var(--ct-fg);
  filter: drop-shadow(0 32px 90px oklch(from var(--ct-accent) l c h / 0.35));
}
.pt-splash-skip {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  animation: pt-splash-skip-in 0.6s ease-out 2.4s forwards;
  pointer-events: none;
}
@keyframes pt-splash-skip-in { to { opacity: 1; } }
@media (max-width: 720px) {
  .pt-splash-mark > svg { width: 110px; height: 110px; }
}

/* ---------- AccessGate brandmark frame ------------------------------- */
.pt-gate-mark {
  color: var(--ct-fg);
  margin-bottom: 8px;
  filter: drop-shadow(0 14px 40px oklch(from var(--ct-accent) l c h / 0.20));
}
