/* ============================================================
   myPropIQ Learn — Landing page (/learn) styles
   Loaded only on the /learn landing page.
   ============================================================ */

/* Hero */
.hero { padding: 78px 0 70px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.4rem); margin: 22px 0 30px; letter-spacing: -.02em; }
.hero h1 .l { display: block; line-height: 1.07; }
.hero h1 .em { font-style: italic; color: var(--amber); }
.hero .lede { max-width: 33em; }
.hero .topline { display: flex; align-items: center; gap: 14px; }
.hero .topline .ln { width: 42px; height: 1px; background: var(--amber); }
.metaline { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin: 30px 0 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.metaline > span { white-space: nowrap; }
.metaline .sep { color: var(--rule-strong); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Series card */
.series-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; }
.series-card .sc-head { padding: 16px 22px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.series-card .sc-head .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.series-card .sc-head .iss { font-family: var(--font-mono); font-size: 11px; color: var(--amber); font-weight: 600; }
.sc-part { padding: 16px 22px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.sc-part:last-child { border-bottom: 0; }
.sc-part .rn { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 700; }
.sc-part .pt .pn { font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.sc-part .pt .pm { font-size: 12.5px; color: var(--text-soft); font-family: var(--font-ui); }

/* Section layout */
.sec { padding: 92px 0; border-bottom: 1px solid var(--rule); }
.sec-head { margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 0; }

/* Syllabus parts */
.part { margin-bottom: 54px; }
.part:last-child { margin-bottom: 0; }
.part-bar { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.part-bar .pno { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--amber); }
.part-bar .ptitle { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
.part-bar .pnote { margin-left: auto; text-align: right; max-width: 160px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* Module rows */
.mrow { display: grid; grid-template-columns: 58px 1fr auto auto 20px; gap: 22px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--rule); transition: background .18s ease, padding .18s ease; text-decoration: none; }
.mrow:last-child { border-bottom: 0; }
.mrow .num { font-family: var(--font-display); font-size: 2.1rem; color: var(--text-faint); font-weight: 700; transition: color .18s; line-height: 1; }
.mrow .mtitle { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); font-weight: 700; line-height: 1.15; }
.mrow .mdesc { font-family: var(--font-ui); font-size: 14px; color: var(--text-soft); margin-top: 4px; max-width: 46em; }
.mrow .mtime { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); white-space: nowrap; }
.mrow .arr { color: var(--text-faint); transition: transform .2s, color .2s; }
.mrow:hover { background: var(--surface-2); padding-left: 18px; padding-right: 18px; }
.mrow:hover .num { color: var(--amber); }
.mrow:hover .arr { color: var(--amber); transform: translateX(4px); }
.mrow.locked { opacity: .72; }
.mrow.locked .mtitle { color: var(--text-soft); }
.lockic { width: 14px; height: 14px; color: var(--text-faint); }

/* Reading paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--rule-strong); }
.path .picon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.path h3 { font-size: 1.4rem; }
.path p { font-family: var(--font-ui); font-size: 14px; color: var(--text-soft); line-height: 1.55; flex: 1; }
.path .go { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--amber); display: inline-flex; align-items: center; gap: 7px; }

/* Sam quote */
.sam-wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.sam-mono { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sam-av { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(140deg, var(--amber) 0%, var(--amber-deep) 100%); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; box-shadow: 0 0 0 7px var(--amber-soft); }
.sam-mono .sb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); text-align: center; }
.sam-q { font-family: var(--font-display); font-size: clamp(1.5rem, 2.7vw, 2.05rem); line-height: 1.32; color: var(--ink); font-style: italic; }
.sam-by { font-family: var(--font-ui); font-size: 14px; color: var(--text-soft); margin-top: 16px; }
.sam-by b { color: var(--amber); }

/* Meet Ava band (kept for potential future use) */
.ava-band { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 30px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ava-band:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--rule-strong); }
.ava-band .ava-port { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 7px var(--amber-soft); }
.ava-band .ava-port img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-band .ava-copy .eyebrow { color: var(--amber); }
.ava-band .ava-copy h3 { font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin: 8px 0 8px; }
.ava-band .ava-copy p { font-family: var(--font-ui); font-size: 14.5px; color: var(--text-soft); line-height: 1.55; max-width: 46em; margin-bottom: 16px; }
.ava-band .ava-watch { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--amber-deep); }
.ava-band .ava-watch .play { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -3px rgba(185,110,31,.6); }

/* Meet Ava hero card (replaces series card in hero right column) */
.ava-hero { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; text-decoration: none; }
.ava-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 48px -12px rgba(28,25,23,.28); border-color: var(--rule-strong); }
.ava-hero-port { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--amber-soft); }
/* object-position: top centers her face inside the crop instead of cutting
   it off at 8% from the top (which clipped chin/forehead on narrow mobile
   aspect ratios). */
.ava-hero-port img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .4s; }
.ava-hero:hover .ava-hero-port img { transform: scale(1.03); }
.ava-hero-body { padding: 20px 22px 24px; }
.ava-hero-body .eyebrow { color: var(--amber); }
.ava-hero-body h3 { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); margin: 8px 0 10px; }
.ava-hero-body p { font-family: var(--font-ui); font-size: 14px; color: var(--text-soft); line-height: 1.55; margin-bottom: 18px; }
.ava-hero-body .ava-watch { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: var(--amber-deep); }
.ava-hero-body .ava-watch .play { width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 14px -3px rgba(185,110,31,.65); transition: box-shadow .2s, transform .2s; }
.ava-hero:hover .ava-hero-body .ava-watch .play { transform: scale(1.08); box-shadow: 0 6px 18px -4px rgba(185,110,31,.75); }

/* Series overview strip (above syllabus) */
.series-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 44px; }
.series-strip .sc-part { border: 1px solid var(--rule); border-radius: 12px; border-bottom: 1px solid var(--rule); padding: 14px 18px; }
.series-strip .sc-part:last-child { border-bottom: 1px solid var(--rule); }

/* Footer */
footer.foot { padding: 60px 0 80px; }

/* Reveal-on-scroll animation */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .paths { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .mrow .mtime, .mrow .arr { display: none; }
  .sam-wrap { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .sam-mono { align-items: center; }
  /* The Ava portrait is a 480x480 square. On mobile the hero is full-width
     in a single column, so a wide aspect-ratio crop chops her chin off the
     bottom. Match the container to the source aspect — 1/1 — so the entire
     portrait shows with no cropping. */
  .ava-hero-port { aspect-ratio: 1/1; }
  .ava-hero-port img { object-position: center center; }
}

@media (max-width: 720px) {
  .ava-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .series-strip { grid-template-columns: 1fr; }
}
