/* getavori.com/learn (2026-10-30): the homepage's own look (website.css):
   the agents' world photo under the title, Code Next with a Tiempos italic
   line, Petrol buttons, white page, the Petrol closing band. */
.learn-world{position:relative;height:clamp(520px,42vw,640px);overflow:hidden;background:var(--ice)}
.learn-world-image{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.learn-world:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(9,34,48,.52),rgba(9,34,48,.3) 34%,transparent 66%)}
.learn-world-title{position:absolute;inset:92px 20px auto;text-align:center;z-index:1}
.learn-world-title h1{font-size:clamp(64px,6.4vw,96px);line-height:1.01;letter-spacing:-.05em;color:#fff;text-shadow:0 2px 18px #173e5020}
.learn-world-title h1 em{color:#fff;letter-spacing:-.03em}

/* The one to start with: the player across the page, its title beside the button. */
.learn-featured{padding:72px 0 24px}
.learn-player{position:relative;display:block;width:100%;aspect-ratio:16/9;border:1px solid #e7e7e7;border-radius:20px;overflow:hidden;background:#0b1c24;box-shadow:0 20px 50px #00000008}
.learn-player img,.learn-player iframe{display:block;width:100%;height:100%;object-fit:cover;border:0}
.learn-play{position:absolute;inset:0;display:grid;place-items:center;border:0;padding:0;background:linear-gradient(0deg,rgba(9,34,48,.34),rgba(9,34,48,0) 46%);cursor:pointer;color:var(--petrol)}
/* On the right, where the thumbnails leave room for it (their title is on the left). */
.learn-play span{position:absolute;left:81.5%;top:50%;display:grid;place-items:center;width:92px;height:92px;border-radius:50%;background:#fff;box-shadow:0 18px 44px rgba(9,34,48,.28);transform:translate(-50%,-50%);transition:transform .18s}
.learn-play:hover span{transform:translate(-50%,-50%) scale(1.06)}
.learn-play svg{width:30px;height:30px;margin-left:5px}
.learn-play:focus-visible{outline:3px solid var(--ice);outline-offset:-6px}
.learn-featured-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-top:30px}
.learn-featured-foot h2{font-size:clamp(34px,3.4vw,48px);line-height:1.08}
.learn-featured-foot p{margin-top:12px;max-width:620px;font-size:18px;line-height:1.6;color:var(--muted)}
.learn-time{display:inline-block;margin-left:10px;font-size:15px;color:#777;white-space:nowrap}
.learn-featured-foot .button{flex:none}

/* A collection: its name, then a row of cards. */
.learn-collection{padding:72px 0 8px}
.learn-collection h2{font-size:clamp(34px,3.4vw,48px);line-height:1.08}
.learn-collection>p{margin-top:12px;font-size:18px;line-height:1.6;color:var(--muted);max-width:620px}
.learn-grid{list-style:none;margin:34px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px}
.learn-card a{display:block;color:inherit;text-decoration:none}
.learn-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:var(--ice);border:1px solid #ececec}
.learn-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.learn-card a:hover .learn-thumb img{transform:scale(1.035)}
.learn-thumb .learn-dur{position:absolute;right:12px;bottom:12px;padding:5px 10px;border-radius:99px;background:#fff;color:var(--petrol);font-size:12px;font-weight:600}
.learn-card h3{margin-top:16px;font-size:20px;line-height:1.25;letter-spacing:-.03em}
.learn-card p{margin-top:6px;font-size:15px;line-height:1.55;color:var(--muted)}
.learn-card a:focus-visible{outline:2px solid var(--petrol);outline-offset:6px;border-radius:18px}
.learn-page .final-cta{margin-top:96px}

/* One video. */
.learn-watch-page .floating-header{position:relative}
.learn-watch{padding:8px 0 40px}
.learn-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;font-size:14px;color:#555;text-decoration:none}
.learn-back:hover{color:var(--petrol)}
.learn-back svg{width:16px;height:16px}
.learn-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-top:30px}
.learn-head h1{font-size:clamp(40px,4.4vw,64px);line-height:1.04}
.learn-head p{margin-top:14px;max-width:640px;font-size:18px;line-height:1.6;color:var(--muted)}
.learn-head .button{flex:none}
.learn-more{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:64px;margin-top:56px;padding-top:40px;border-top:1px solid #eee}
.learn-more h2{font-size:24px;letter-spacing:-.03em}
.learn-block+.learn-block{margin-top:48px}
.learn-points{margin:18px 0 0;padding:0 0 0 20px;display:grid;gap:10px;font-size:16px;line-height:1.55;color:#333}
.learn-points li::marker{color:var(--petrol)}
.learn-chapters{list-style:none;margin:18px 0 0;padding:0}
.learn-chapters button{display:flex;gap:18px;width:100%;padding:13px 0;border:0;border-bottom:1px solid #f0f0f0;background:none;font:inherit;font-size:16px;color:#222;text-align:left;cursor:pointer}
.learn-chapters button:hover{color:var(--petrol)}
.learn-chapters button.is-on{color:var(--petrol);font-weight:600}
.learn-chapters time{min-width:44px;color:#888;font-variant-numeric:tabular-nums}
.learn-next{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:18px}
.learn-next a{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:center;color:inherit;text-decoration:none}
.learn-next .learn-thumb{border-radius:12px}
.learn-next h3{font-size:18px;line-height:1.3;letter-spacing:-.025em}
.learn-next p{margin-top:4px;font-size:14px;color:#777}
.learn-next a:hover h3{color:var(--petrol)}
.learn-missing{padding:80px 0;text-align:center}
.learn-missing p{margin:16px 0 28px;color:var(--muted);font-size:18px}

@media(max-width:1050px){.learn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.learn-more{gap:40px}.learn-next a{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:760px){
  .learn-world{height:auto;overflow:visible;background:#fff}
  .learn-world:after{display:none}
  .learn-world-image{height:245px;object-position:50% 66%}
  .learn-world-title{position:relative;inset:auto;padding:37px 20px 22px;background:#fff}
  .learn-page .floating-header.light{position:relative}
  .learn-page .floating-header.light .logo img{content:url(/assets/logo.png)}
  .learn-page .floating-header.light .button{background:var(--petrol);color:#fff}
  .learn-world-title h1{font-size:50px;color:#000;text-shadow:none}
  .learn-world-title h1 em{color:var(--petrol)}
  .learn-featured{padding:24px 0 8px}
  .learn-player{border-radius:16px}
  .learn-play span{width:68px;height:68px}
  .learn-play svg{width:24px;height:24px}
  .learn-featured-foot,.learn-head{flex-direction:column;align-items:stretch;gap:20px;margin-top:22px}
  .learn-featured-foot h2,.learn-collection h2{font-size:32px}
  .learn-featured-foot p,.learn-collection>p,.learn-head p{font-size:16px}
  .learn-head h1{font-size:38px}
  .learn-collection{padding:52px 0 0}
  .learn-grid{grid-template-columns:1fr;gap:30px;margin-top:24px}
  .learn-more{grid-template-columns:1fr;gap:40px;margin-top:40px;padding-top:30px}
  .learn-next a{grid-template-columns:132px minmax(0,1fr);gap:14px}
  .learn-next h3{font-size:16px}
  .learn-block+.learn-block{margin-top:40px}
  .learn-page .final-cta{margin-top:64px}
}
@media(prefers-reduced-motion:reduce){.learn-thumb img,.learn-play span{transition:none}}

/* Get Avori for Mac (learn.js): when no Mac app answered Open Avori. */
.learn-mac{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px;background:rgba(9,34,48,.46)}
.learn-mac-card{position:relative;width:min(100%,420px);padding:36px 32px 28px;border-radius:28px;background:#fff;box-shadow:0 24px 64px rgba(16,30,60,.24);text-align:center}
.learn-mac-card h2{margin:0;font-size:28px;letter-spacing:-.025em;color:var(--ink,#0b1217)}
.learn-mac-card p{margin:10px 0 22px;color:#4d4d4d}
.learn-mac-card .button{display:flex;justify-content:center;width:100%}
.learn-mac-web{display:inline-block;margin-top:16px;font-size:15px;color:#4d4d4d;text-decoration:underline;text-underline-offset:3px}
.learn-mac-web:hover{color:var(--petrol)}
.learn-mac-x{position:absolute;top:12px;right:14px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1;color:#666;cursor:pointer}
.learn-mac-x:hover{background:#f2f2f2}
