/* ============================================================
   Exam landing pages — Apple-inspired continuous scroll layout
   Keeps site palette (#4a90e2) and works with existing header.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body.exam-landing {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Header still fixed via styles.css */
}

/* Full-bleed layout: override default .main-content constraints */
body.exam-landing .main-content.exam-shell,
body.exam-landing .exam-shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

/* ---------- Hero ---------- */
.el-hero {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.el-hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a90e2;
  margin-bottom: 0.85rem;
}

.el-hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #1d1d1f;
  margin: 0 auto 0.75rem;
  max-width: 16ch;
}
.el-hero h1 .beta-sub {
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4a90e2;
  margin-left: 0.22em;
}

.el-hero .el-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400;
  color: #6e6e73;
  max-width: 32em;
  margin: 0 auto 1.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.el-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  align-items: center;
}

html.is-logged-in .guest-only,
html.is-logged-in a.el-btn[href="signup.html"] {
  display: none !important;
}

.el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 980px;
  padding: 0.75rem 1.45rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.el-btn-primary {
  background: #4a90e2;
  color: #fff;
}
.el-btn-primary:hover {
  background: #3a7bc8;
  color: #fff;
}

.el-btn-ghost {
  background: transparent;
  color: #4a90e2;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.el-btn-ghost:hover {
  text-decoration: underline;
}

/* ---------- Continuous scroll sections ---------- */
.el-section {
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
}

.el-section-light {
  background: #f5f5f7;
}

.el-section-white {
  background: #ffffff;
}

.el-section-soft {
  background: linear-gradient(180deg, #f0f7ff 0%, #f5f5f7 100%);
}

.el-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.el-section-head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.el-section-head h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #1d1d1f;
  margin: 0 0 0.5rem;
}

.el-section-head p {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #6e6e73;
  max-width: 34em;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.45;
}

.el-chapter-head {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a90e2;
  margin: 2rem 0 0.85rem;
}

/* ---------- Large product tiles (Apple-style) ---------- */
.el-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 780px) {
  .el-tile-grid {
    grid-template-columns: 1fr;
  }
  .el-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .el-section-head h2 { font-size: 1.45rem; }
  .el-section-head p { font-size: 0.95rem; }
}

.el-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(240px, 32vw, 320px);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.28s ease;
}

.el-tile:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.14);
}

.el-tile:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 3px;
}

.el-tile-wide {
  grid-column: 1 / -1;
  min-height: clamp(220px, 28vw, 280px);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
}

.el-tile-dark {
  background: linear-gradient(160deg, #1e3a5f 0%, #2d4a6f 50%, #3d5a80 100%);
  color: #f5f5f7;
  border: none;
}
.el-tile-dark .el-tile-title { color: #fff; }
.el-tile-dark .el-tile-desc { color: rgba(255, 255, 255, 0.72); }
.el-tile-dark .el-tile-meta { color: #93c5fd; }
.el-tile-dark:hover {
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.35);
}

.el-tile-accent {
  background: linear-gradient(145deg, #e8f2fc 0%, #ffffff 60%);
}

.el-tile-index {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.el-tile-dark .el-tile-index {
  color: rgba(255, 255, 255, 0.45);
}

.el-tile-arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.12);
  color: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: background 0.2s, transform 0.2s;
}

.el-tile-dark .el-tile-arrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.el-tile:hover .el-tile-arrow {
  background: #4a90e2;
  color: #fff;
  transform: translateX(2px);
}

.el-tile-icon {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.85rem;
  opacity: 0.95;
}

.el-tile-title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #1d1d1f;
  margin: 0 0 0.4rem;
}

.el-tile-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #6e6e73;
  line-height: 1.4;
  margin: 0;
  max-width: 28em;
  font-weight: 400;
}

.el-tile-meta {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a90e2;
}

.el-tile-meta.ok {
  color: #16a34a;
}

/* ---------- Feature strip ---------- */
.el-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .el-features {
    grid-template-columns: 1fr;
  }
}

.el-feature {
  background: #fff;
  border-radius: 22px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.el-feature h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: #1d1d1f;
}

.el-feature p {
  font-size: 0.98rem;
  color: #6e6e73;
  margin: 0;
  line-height: 1.45;
}

/* ---------- Sample / content blocks ---------- */
.el-sample {
  background: #fff;
  border-radius: 22px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.el-sample strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  color: #1d1d1f;
}

.el-sample p {
  margin: 0 0 0.45rem;
  color: #424245;
  font-size: 1.02rem;
  line-height: 1.5;
}

.el-sample .el-answer {
  color: #16a34a;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Locked / notice ---------- */
.el-locked {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.el-locked p {
  color: #6e6e73;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.el-tools-locked .el-tile,
.el-tile.el-tile-locked {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.12);
}

.el-tile.el-tile-locked .el-tile-meta::before {
  content: "Locked · ";
}

.el-notice {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
}

.el-notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.el-notice-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.el-notice a {
  color: #4a90e2;
  font-weight: 600;
}

/* ---------- Footer on exam landings ---------- */
body.exam-landing footer {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  text-align: center;
  padding: 1.75rem 1rem 2.5rem;
  font-size: 0.85rem;
  color: #6e6e73;
}

body.exam-landing footer a {
  color: #4a90e2;
  text-decoration: none;
}
body.exam-landing footer a:hover {
  text-decoration: underline;
}

/* ---------- Banner above grid ---------- */
.el-banner-slot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Subtle scroll reveal helper (optional class) */
@media (prefers-reduced-motion: no-preference) {
  .el-tile {
    will-change: transform;
  }
}
