/* ============================================================================
   CHIPREADY — sub-page components (investors · academy · start)
   Extends styles.css. Reuses tokens + existing components where possible.
   ========================================================================= */

/* ---- Page hero (compact) -------------------------------------------------*/
.page-hero { position: relative; padding-top: clamp(8rem, 16vh, 12rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 80% 0%, rgba(255,106,44,0.07), transparent 55%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--f-sans); font-weight: 800; font-stretch: 118%;
  font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 18ch; color: var(--text); text-wrap: balance; margin-top: 1.6rem;
}
.page-hero h1 em { font-style: normal; color: var(--ember); }
.page-hero .sub { margin-top: 1.6rem; font-size: clamp(1.08rem, 1rem + 0.6vw, 1.4rem); line-height: 1.5; color: var(--text-dim); max-width: 58ch; }
.page-hero .sub b { color: var(--text); font-weight: 600; }
.page-hero .actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* facts strip under page hero — reuses ribbon look */
.facts { margin-top: clamp(2.5rem,5vw,4rem); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
.facts .f { padding: clamp(1rem,2vw,1.5rem) 1.4rem; border-right: 1px solid var(--line); }
.facts .f:first-child { padding-left: 0; }
.facts .f:last-child { border-right: 0; padding-right: 0; }
.facts .f .n { display: block; font-family: var(--f-sans); font-weight: 800; font-size: clamp(1.4rem,1rem+1.4vw,2.1rem); letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.facts .f .n .u { color: var(--ember); }
.facts .f .l { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.6rem; }
@media (max-width: 720px){ .facts{ grid-template-columns: 1fr 1fr; } .facts .f:nth-child(2){border-right:0;} .facts .f{border-bottom:1px solid var(--line);} }

/* ---- Layout helpers ------------------------------------------------------*/
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); }
.grid2--bias { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 860px){ .grid2, .grid2--bias { grid-template-columns: 1fr; } }
.measure { max-width: 62ch; }
.prose p { color: var(--text-dim); line-height: 1.62; margin-top: 1.1rem; }
.prose p:first-child { margin-top: 0; }
.prose p b { color: var(--text); font-weight: 600; }
.prose p em { color: var(--ember); font-style: normal; }

/* ---- Thesis / numbered blocks -------------------------------------------*/
.thesis { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.thesis .row { background: var(--void); padding: clamp(1.5rem,3vw,2.4rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem,3vw,2.5rem); align-items: start; transition: background 0.4s; }
.thesis .row:hover { background: var(--surface); }
.thesis .row .k { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ember); letter-spacing: 0.1em; padding-top: 0.4rem; }
.thesis .row h3 { font-family: var(--f-sans); font-weight: 700; font-stretch: 108%; font-size: clamp(1.2rem,1rem+0.9vw,1.7rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.thesis .row p { color: var(--text-dim); line-height: 1.55; margin-top: 0.7rem; max-width: 64ch; }

/* ---- Timeline ------------------------------------------------------------*/
.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl { position: relative; padding: 0 0 clamp(1.8rem,3vw,2.6rem) clamp(2.2rem,4vw,3rem); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--void); border: 2px solid var(--ember); }
.tl.is-done::before { background: var(--ember); }
.tl .yr { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.tl h4 { font-family: var(--f-sans); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--text); margin-top: 0.4rem; }
.tl p { color: var(--text-dim); line-height: 1.5; margin-top: 0.4rem; max-width: 56ch; font-size: 0.98rem; }
.tl ul { margin-top: 0.6rem; display: grid; gap: 0.35rem; }
.tl ul li { color: var(--text-dim); font-size: 0.95rem; padding-left: 1.1em; position: relative; }
.tl ul li::before { content: "→"; position: absolute; left: 0; color: var(--text-faint); }

/* ---- Use of funds / ask bars --------------------------------------------*/
.ask { display: grid; gap: 1.1rem; }
.ask .bar { display: grid; gap: 0.5rem; }
.ask .bar .top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ask .bar .top .lbl { font-weight: 600; color: var(--text); }
.ask .bar .top .pct { font-family: var(--f-mono); font-size: 0.82rem; color: var(--ember); }
.ask .bar .track { height: 8px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.ask .bar .track i { position: absolute; inset: 0; right: auto; width: var(--w,0%); background: linear-gradient(90deg, var(--ember-deep), var(--ember)); transition: width 1.1s var(--ease); }
.ask .bar .desc { font-size: 0.9rem; color: var(--text-faint); }

/* ---- Team ----------------------------------------------------------------*/
.team { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team .m { background: var(--void); padding: clamp(1.4rem,2.6vw,2rem); display: flex; flex-direction: column; gap: 0.5rem; min-height: 200px; }
.team .m .ava { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ember); display: grid; place-items: center; font-family: var(--f-mono); color: var(--ember); font-size: 0.9rem; margin-bottom: 0.6rem; }
.team .m h4 { font-family: var(--f-sans); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.team .m .role { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.team .m p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; margin-top: auto; }
.team .m.open { background: linear-gradient(160deg, rgba(255,106,44,0.05), var(--void) 60%); }
@media (max-width: 820px){ .team{ grid-template-columns: 1fr; } }

/* ---- FAQ -----------------------------------------------------------------*/
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: clamp(1.2rem,2.4vw,1.7rem) 0; display: flex; justify-content: space-between; gap: 2rem; align-items: center; font-family: var(--f-sans); font-weight: 600; font-size: clamp(1.05rem,1rem+0.4vw,1.3rem); letter-spacing: -0.01em; color: var(--text); transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember); }
.faq summary .pm { font-family: var(--f-mono); color: var(--ember); font-size: 1.2rem; transition: transform 0.3s; flex: none; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { color: var(--text-dim); line-height: 1.6; padding-bottom: 1.5rem; max-width: 70ch; }
.faq .ans b { color: var(--text); font-weight: 600; }

/* ---- Big closing callout (reuse .call but inline variant) ----------------*/
.cta-band { border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--void)); padding: clamp(2.5rem,6vw,5rem); text-align: center; display: grid; justify-items: center; gap: 1.4rem; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 120% at 50% 130%, var(--ember-glow), transparent 60%); pointer-events:none; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--f-sans); font-weight: 800; font-stretch: 115%; font-size: clamp(1.9rem,1.2rem+3vw,3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--text); max-width: 20ch; }
.cta-band h2 em { font-style: normal; color: var(--ember); }
.cta-band p { color: var(--text-dim); max-width: 52ch; line-height: 1.55; }
.cta-band .actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ============================================================================
   ACADEMY — catalog
   ========================================================================= */
.disc-detail { border-top: 1px solid var(--line); padding-block: clamp(2.5rem,5vw,4rem); }
.disc-detail:first-of-type { border-top: 0; }
.disc-detail .dhead { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,3vw,2.5rem); align-items: baseline; margin-bottom: 2rem; }
.disc-detail .dhead .dk { font-family: var(--f-mono); font-size: 0.9rem; color: var(--ember); }
.disc-detail .dhead h2 { font-family: var(--f-sans); font-weight: 700; font-stretch: 110%; font-size: clamp(1.6rem,1rem+2.2vw,2.8rem); letter-spacing: -0.025em; line-height: 1.04; color: var(--text); }
.disc-detail .dhead p { color: var(--text-dim); line-height: 1.5; margin-top: 0.8rem; max-width: 60ch; }
.courses { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.course { background: var(--void); padding: clamp(1.2rem,2.4vw,1.7rem) clamp(1.2rem,2.4vw,1.8rem); display: grid; grid-template-columns: 1fr auto; gap: 0.6rem 1.5rem; align-items: start; transition: background 0.35s; }
.course:hover { background: var(--surface); }
.course .ctitle { font-family: var(--f-sans); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--text); }
.course .cmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.2rem; }
.course .cmeta span { font-family: var(--f-mono); font-size: 0.63rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--line-strong); padding: 0.3em 0.55em; border-radius: 2px; }
.course .cmeta span.lvl-b { color: #8fc7a0; border-color: rgba(143,199,160,0.4); }
.course .cmeta span.lvl-i { color: #d9b46a; border-color: rgba(217,180,106,0.4); }
.course .cmeta span.lvl-a { color: var(--ember); border-color: rgba(255,106,44,0.45); }
.course .cmeta span.job { color: var(--text-dim); }
.course .cdur { font-family: var(--f-mono); font-size: 0.74rem; color: var(--text-faint); white-space: nowrap; text-align: right; }

/* role ladder table */
.rolemap { border: 1px solid var(--line); overflow: hidden; }
.rolemap .rrow { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 1px; background: var(--line); }
.rolemap .rrow > div { background: var(--void); padding: 1rem 1.2rem; font-size: 0.92rem; }
.rolemap .rhead > div { background: var(--surface-2); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.rolemap .role { color: var(--text); font-weight: 600; }
.rolemap .deg { color: var(--text-dim); }
.rolemap .ent { color: var(--text-faint); }
@media (max-width: 680px){ .rolemap .rrow{ grid-template-columns: 1fr; } .rolemap .rhead{ display:none; } }

/* ============================================================================
   START — ChipReady AI assessment
   ========================================================================= */
.asmt-wrap { min-height: 100svh; display: grid; place-items: center; padding: clamp(6rem,12vh,9rem) var(--gutter) 4rem; position: relative; }
.asmt-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.asmt { position: relative; z-index: 2; width: 100%; max-width: 960px; }
.asmt-card { background: rgba(16,19,23,0.72); border: 1px solid var(--line-strong); border-radius: 4px; padding: clamp(1.6rem,4vw,2.8rem); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 760px; margin-inline: auto; }
.asmt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.asmt-top .step { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.asmt-top .step b { color: var(--ember); font-weight: 500; }
.asmt-prog { width: 120px; height: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.asmt-prog i { position: absolute; inset: 0; right: auto; width: 0; background: var(--ember); transition: width 0.5s var(--ease); }
.asmt-q { font-family: var(--f-sans); font-weight: 700; font-stretch: 110%; font-size: clamp(1.5rem,1rem+2vw,2.3rem); letter-spacing: -0.025em; line-height: 1.06; color: var(--text); }
.asmt-hint { color: var(--text-dim); margin-top: 0.7rem; font-size: 0.98rem; }
.opts { margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width:560px){ .opts.two{ grid-template-columns:1fr; } }
.opt { text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1rem 1.2rem; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s; display: grid; gap: 0.2rem; }
.opt:hover { border-color: var(--text-dim); transform: translateY(-1px); }
.opt.sel { border-color: var(--ember); background: rgba(255,106,44,0.08); }
.opt .ot { font-family: var(--f-sans); font-weight: 600; color: var(--text); font-size: 1.02rem; }
.opt .od { color: var(--text-dim); font-size: 0.86rem; }
.opt .ok { font-family: var(--f-mono); font-size: 0.62rem; color: var(--ember); letter-spacing: 0.1em; text-transform: uppercase; }
.asmt-actions { margin-top: 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* trajectory result */
.traj { position: relative; z-index: 2; width: 100%; max-width: 920px; margin-inline: auto; }
.traj-head { margin-bottom: 2rem; }
.traj-head .eyebrow { margin-bottom: 1rem; }
.traj-head h2 { font-family: var(--f-sans); font-weight: 800; font-stretch: 114%; font-size: clamp(1.8rem,1rem+3vw,3.4rem); letter-spacing: -0.03em; line-height: 1.02; color: var(--text); }
.traj-head h2 em { font-style: normal; color: var(--ember); }
.traj-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.traj-grid > .tcell { background: var(--void); padding: clamp(1.4rem,3vw,2.2rem); }
.tcell h3 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; }
@media (max-width: 820px){ .traj-grid{ grid-template-columns: 1fr; } }

/* mini ladder */
.mini-ladder { display: grid; gap: 0.45rem; }
.mini-l { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.8rem; align-items: center; padding: 0.5rem 0.7rem; border: 1px solid transparent; border-radius: 3px; transition: background 0.3s; }
.mini-l .mn { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-faint); }
.mini-l .mname { font-weight: 600; color: var(--text-faint); font-size: 0.95rem; }
.mini-l.in { background: rgba(255,106,44,0.07); border-color: rgba(255,106,44,0.25); }
.mini-l.in .mname { color: var(--text); }
.mini-l.in .mn { color: var(--ember); }
.mini-l.start .mname::after { content: " — you are here"; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.mini-l.target .mname::after { content: " — your target"; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }

/* recommended modules */
.rec { display: grid; gap: 0.6rem; }
.rec .r { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.rec .r:last-child { border-bottom: 0; }
.rec .r .rn { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ember); padding-top: 0.15rem; }
.rec .r .rt { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.rec .r .rm { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.2rem; }

/* companion chat */
.companion { margin-top: 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.companion .av { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ember); display: grid; place-items: center; flex: none; }
.companion .av i { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); animation: pulse 2.6s var(--ease) infinite; }
.companion .bubble { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px 12px 12px 12px; padding: 1rem 1.2rem; }
.companion .bubble .who { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 0.5rem; }
.companion .bubble p { color: var(--text-dim); line-height: 1.55; font-size: 0.96rem; }
.companion .bubble p b { color: var(--text); font-weight: 600; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: 0.2s; } .typing span:nth-child(3){ animation-delay: 0.4s; }
@keyframes blink { 0%,60%,100%{ opacity:0.25; } 30%{ opacity:1; } }

.traj-foot { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.fade-in { animation: fadeUp 0.6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } .companion .av i { animation: none; } }
