/* TridLearn V0.8 — layered inner-page experiment
   Principle: inherit the homepage's contrast rhythm, not its warm color everywhere. */

/* Shared on the two experiment pages */
.v08-page{background:#fff;color:#171923}
.v08-page .site-header{background:#fff;border-bottom:1px solid rgba(220,222,230,.82);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.v08-page .nav-links a:hover,.v08-page .nav-links a.active{background:#f2f3f6;color:#171923}
.v08-page .footer{background:#171923}
.v08-page .eyebrow{color:#6b5ce7}

/* ---------- COURSE LIBRARY ---------- */
.library-v08{background:#fff;padding-bottom:90px}
.library-v08-hero{padding:34px 0 0;background:#fff}
.library-v08-frame{position:relative;overflow:hidden;border-radius:26px;background:#f7f3ed;min-height:286px;padding:48px 52px;display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:48px;align-items:end;border:1px solid #ebe5dd}
.library-v08-frame:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.74) 0%,rgba(255,255,255,.18) 55%,rgba(255,255,255,0) 100%);pointer-events:none}
.library-v08-copy, .library-v08-proof{position:relative;z-index:2;align-self:stretch;display:block}
.library-proof-dark{height:100%;min-height:210px;background:#171923;color:#fff;border-radius:18px;padding:25px 28px 22px;display:flex;flex-direction:column;box-shadow:0 20px 44px rgba(23,25,35,.14)}
.library-proof-kicker{font-size:10px;line-height:1.2;letter-spacing:.14em;color:#9ea5b5;margin-bottom:14px}
.library-proof-message{flex:1}
.library-proof-message strong{display:block;font-size:26px;line-height:1.16;letter-spacing:-.04em;font-weight:760;color:#fff}
.library-proof-message span{display:block;margin-top:10px;max-width:270px;font-size:11px;line-height:1.62;color:#aeb4c1}
.library-proof-facts{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-top:16px;margin-top:18px;border-top:1px solid rgba(255,255,255,.14)}
.library-proof-facts div{min-width:0}
.library-proof-facts span{display:block;font-size:9.5px;line-height:1.3;color:#8f96a6;margin-bottom:5px}
.library-proof-facts b{display:block;font-size:13px;line-height:1.25;color:#fff;font-weight:700;white-space:nowrap}

.library-v08-content{padding-top:30px}
.library-v08-tools{position:sticky;top:74px;z-index:20;display:flex;gap:9px;align-items:center;padding:14px 0;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid #eceef2}
.library-v08-tools .filter{border-color:#dfe2e8;color:#565c69;background:#fff}
.library-v08-tools .filter.active,.library-v08-tools .filter:hover{background:#171923;color:#fff;border-color:#171923}
.library-v08-tools .search{border-color:#dfe2e8;background:#fff}
.library-v08-count{margin:30px 0 17px;display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.library-v08-count h2{font-size:22px;letter-spacing:-.025em;margin:0}
.library-v08-count span{font-size:11px;color:#8a8d95}
.library-v08 .course-all{gap:38px 22px;padding:0}
.library-v08 .course-card{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
.library-v08 .course-card:hover{transform:none;box-shadow:none;border:0}
.library-v08 .course-card .thumb{height:auto;aspect-ratio:16/10;border-radius:16px;padding:18px;box-shadow:0 13px 30px rgba(28,32,52,.12);transition:transform .2s ease,box-shadow .2s ease}
.library-v08 .course-card:hover .thumb{transform:translateY(-4px);box-shadow:0 18px 38px rgba(28,32,52,.18)}
.library-v08 .course-card .course-body{padding:14px 2px 0}
.library-v08 .course-meta{font-size:11px;margin-bottom:6px;color:#6659d5}
.library-v08 .course-title{font-size:16px;color:#171923;margin-bottom:5px}
.library-v08 .course-desc{font-size:12px;color:#777b86;min-height:0}
.library-v08 .course-foot{margin-top:10px;color:#777b86;font-size:11px}
.library-v08 .pill{background:#f1efff;color:#5b4fca}

/* ---------- MIGRATION ---------- */
.migration-v08{background:#fff;padding-bottom:96px}
.migration-v08-hero{padding:34px 0 52px;background:#fff}
.migration-v08-stage{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);border-radius:28px;overflow:hidden;box-shadow:0 24px 65px rgba(29,29,38,.09);border:1px solid #e9e5df}
.migration-v08-main{background:#f7f3ed;padding:54px 56px 52px;position:relative;overflow:hidden}
.migration-v08-main:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;right:-245px;bottom:-250px;background:#e9e4ff;opacity:.9}
.migration-v08-main>*{position:relative;z-index:2}
.migration-v08-main h1{font-size:clamp(46px,5vw,70px);line-height:.98;letter-spacing:-.055em;margin:0 0 22px;color:#171923;white-space:nowrap}
.migration-v08-statement{font-size:22px;line-height:1.42;letter-spacing:-.025em;font-weight:780;max-width:690px;margin-bottom:14px;color:#2b2b31}
.migration-v08-statement em{font-style:normal;color:#6b5ce7}
.migration-v08-main>p{font-size:14px;line-height:1.82;color:#68666b;max-width:680px;margin:0}
.migration-v08-note{margin-top:26px;padding-top:18px;border-top:1px solid #ddd6ce;display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.65;color:#5f5c60}
.migration-v08-note b{color:#171923;white-space:nowrap}

.migration-v08-gains{background:#171923;color:#fff;padding:48px 40px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.migration-v08-gains:before{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-160px;top:-150px;background:radial-gradient(circle,rgba(111,91,231,.42),rgba(111,91,231,0) 70%)}
.migration-v08-gains .eyebrow{color:#9f95ff;position:relative}
.migration-v08-gains h2{position:relative;font-size:25px;line-height:1.2;letter-spacing:-.035em;margin:0 0 20px}
.migration-v08-gain-list{position:relative;border-top:1px solid rgba(255,255,255,.14)}
.migration-v08-gain{display:grid;grid-template-columns:38px 1fr;gap:13px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.migration-v08-gain .num{font-size:11px;color:#9f95ff;font-weight:900;padding-top:2px}
.migration-v08-gain strong{display:block;font-size:14px;margin-bottom:4px;color:#fff}
.migration-v08-gain span{display:block;color:#b6bdca;font-size:12px;line-height:1.65}

.migration-v08-rules{padding:62px 0 54px;background:#fff}
.migration-v08-heading{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:46px;align-items:end;margin-bottom:24px}
.migration-v08-heading h2{font-size:32px;line-height:1.1;letter-spacing:-.04em;margin:0}
.migration-v08-heading p{margin:0;color:#777b85;font-size:12px;line-height:1.65}
.migration-v08-rulegrid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #dfe2e8;border-bottom:1px solid #dfe2e8}
.migration-v08-rule{padding:26px 23px 24px;border-right:1px solid #dfe2e8;min-height:144px;background:#fff}
.migration-v08-rule:last-child{border-right:0}
.migration-v08-rule span{display:block;font-size:11px;color:#747985;line-height:1.55;max-width:150px}
.migration-v08-rule strong{display:block;font-size:34px;line-height:1;letter-spacing:-.05em;margin-top:20px;color:#171923}
.migration-v08-rule.direct{background:#171923}
.migration-v08-rule.direct span{color:#abb2c0}.migration-v08-rule.direct strong{color:#fff;font-size:25px;line-height:1.15}

.migration-v08-calc{background:#f5f6f8;border-top:1px solid #eceef2;border-bottom:1px solid #eceef2;padding:58px 0 62px}
.migration-v08-calc-head{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:42px;align-items:end;margin-bottom:26px}
.migration-v08-calc-head h2{font-size:32px;line-height:1.12;letter-spacing:-.04em;margin:0 0 8px}
.migration-v08-calc-head p{font-size:13px;color:#717681;line-height:1.7;margin:0;max-width:720px}
.migration-v08-calc-head aside{font-size:11px;color:#858a94;line-height:1.65;border-left:2px solid #171923;padding-left:14px}
.migration-v08-work{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(340px,.72fr);gap:20px;align-items:stretch}
.migration-v08-plans{background:#fff;border:1px solid #e0e3e9;border-radius:19px;padding:26px}
.migration-v08-plans h3{font-size:17px;margin:0 0 5px}.migration-v08-plans>p{font-size:11px;color:#838792;margin:0 0 18px}
.migration-v08-plans .plan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.migration-v08-plans .plan-option{background:#fafbfc;border:1px solid #e0e3e9;border-radius:11px;padding:13px 14px;color:#3d414b}
.migration-v08-plans .plan-option:hover{border-color:#bbc0cc}
.migration-v08-plans .plan-option:has(input:checked){background:#f0efff;border-color:#aaa2f2;color:#40378c}
.migration-v08-plans .special-case{border-top:1px solid #e7e9ed;color:#666b76}
.migration-v08-result{background:#171923;color:#fff;border-radius:19px;padding:29px;display:flex;flex-direction:column;justify-content:space-between;min-height:350px;box-shadow:0 22px 55px rgba(23,25,35,.17);position:relative;overflow:hidden}
.migration-v08-result:before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-125px;top:-135px;background:radial-gradient(circle,rgba(110,91,231,.55),rgba(110,91,231,0) 70%)}
.migration-v08-result>*{position:relative;z-index:2}
.migration-v08-result .label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#aab1c0;font-weight:850}
.migration-v08-result .result-price{font-size:60px;line-height:.98;letter-spacing:-.06em;margin-top:22px;color:#fff}
.migration-v08-result .result-note{font-size:12px;line-height:1.65;color:#b7bdc9;margin-top:10px;max-width:280px;min-height:42px}
.migration-v08-result .btn{width:100%;margin-top:24px}
.migration-v08-result .special{font-size:10px;line-height:1.55;color:#8f97a8;margin-top:12px}

.migration-v08-after{padding:62px 0 0;background:#fff}
.migration-v08-process{display:grid;grid-template-columns:260px minmax(0,1fr);gap:56px;padding-bottom:54px;border-bottom:1px solid #e5e7ec}
.migration-v08-process h2{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin:0}
.migration-v08-processline{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.migration-v08-step{border-top:2px solid #1b1d24;padding-top:16px}
.migration-v08-step b{display:block;color:#6b5ce7;font-size:11px;margin-bottom:12px}.migration-v08-step strong{display:block;font-size:13px;margin-bottom:6px}.migration-v08-step span{display:block;font-size:11px;color:#777c86;line-height:1.6}
.migration-v08-faq{max-width:900px;margin:52px auto 0}
.migration-v08-faq .eyebrow{margin-bottom:7px}.migration-v08-faq h2{font-size:25px;letter-spacing:-.03em;margin:0 0 16px}
.migration-v08-faq details{border:0;border-top:1px solid #e2e4e9;padding:0;background:transparent}.migration-v08-faq details:last-child{border-bottom:1px solid #e2e4e9}
.migration-v08-faq summary{cursor:pointer;padding:17px 0;font-weight:800}.migration-v08-faq p{margin:0 0 17px;color:#6d727d;font-size:13px}

@media(max-width:1000px){
  .library-v08-frame,.migration-v08-stage,.migration-v08-heading,.migration-v08-calc-head,.migration-v08-work,.migration-v08-process{grid-template-columns:1fr}
  .library-v08-proof{display:block}.library-proof-dark{min-height:190px}
  .migration-v08-main h1{white-space:normal}.migration-v08-process{gap:26px}.migration-v08-gains{padding:38px 42px}
}
@media(max-width:760px){
  .library-v08-frame{padding:38px 30px}.library-v08-proof{display:block}.library-proof-dark{min-height:190px}.library-v08-tools{top:66px;overflow:auto}.library-v08-tools .search{display:none}.library-v08 .course-all{grid-template-columns:repeat(2,1fr)}
  .migration-v08-main{padding:42px 30px}.migration-v08-gains{padding:36px 30px}.migration-v08-rulegrid,.migration-v08-processline{grid-template-columns:1fr 1fr}.migration-v08-rule:nth-child(2){border-right:0}.migration-v08-rule{border-bottom:1px solid #dfe2e8}.migration-v08-rule:nth-child(3),.migration-v08-rule:nth-child(4){border-bottom:0}.migration-v08-plans .plan-list{grid-template-columns:1fr}
}
@media(max-width:520px){
  .library-v08-hero,.migration-v08-hero{padding-top:18px}.library-v08-frame{padding:32px 22px;border-radius:20px}.library-v08-copy h1{font-size:44px}.library-v08 .course-all{grid-template-columns:1fr}.library-v08-count{align-items:flex-start;flex-direction:column;gap:5px}
  .migration-v08-stage{border-radius:20px}.migration-v08-main{padding:34px 23px}.migration-v08-main h1{font-size:44px}.migration-v08-statement{font-size:19px}.migration-v08-gains{padding:31px 23px}.migration-v08-rulegrid,.migration-v08-processline{grid-template-columns:1fr}.migration-v08-rule{border-right:0!important;border-bottom:1px solid #dfe2e8!important}.migration-v08-rule:last-child{border-bottom:0!important}.migration-v08-result{min-height:310px}.migration-v08-process{grid-template-columns:1fr}.migration-v08-calc{padding:46px 0}.migration-v08-rules{padding:48px 0 42px}
}

@media (max-width:760px){
  .library-proof-message strong{font-size:24px}
  .library-proof-facts{gap:14px}
  .library-proof-facts b{font-size:12.5px}
}


/* V12.82 Course card alignment fix */
.library-v08 .course-all{align-items:stretch}
.library-v08 .course-all .course-card{height:100%;display:flex;flex-direction:column}
.library-v08 .course-all .course-card .course-body{display:flex;flex:1;flex-direction:column}
.library-v08 .course-all .course-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em}
.library-v08 .course-all .course-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;height:6.2em;min-height:6.2em}
.library-v08 .course-all .course-foot{margin-top:auto;padding-top:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;min-height:48px}
.library-v08 .course-all .course-foot>span:first-child{min-width:0;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.library-v08 .course-all .course-card-badges{flex-wrap:nowrap;flex-shrink:0;align-self:end}
@media(max-width:640px){.library-v08 .course-all .course-desc{height:auto;min-height:0;-webkit-line-clamp:3}.library-v08 .course-all .course-title{min-height:0}.library-v08 .course-all .course-foot{min-height:0}}
