/* Public entrance reshaped as a compact app landing page on phones only. */
@media (max-width:700px){
  html{scroll-behavior:smooth}
  body{background:linear-gradient(180deg,#eef4ff 0,#f7f9fd 430px);padding-bottom:env(safe-area-inset-bottom)}
  .welcome-grid{display:flex;flex-direction:column;gap:14px;width:auto;min-width:0;margin:12px 10px 34px}
  .welcome-rail-column{display:contents}
  .welcome-rail{order:-2;position:relative;width:100%;min-width:0;max-width:none;margin:0;border-radius:22px;box-shadow:0 14px 40px #002b7416}
  .skool-banner{height:128px;object-fit:cover;object-position:center 27%;background:#fff8f2}
  .welcome-rail-body{padding:18px}.welcome-rail h2{font-size:22px;margin-bottom:8px}.welcome-rail p{font-size:13px;line-height:1.55;margin-bottom:10px}
  .welcome-links{grid-template-columns:repeat(3,1fr);gap:7px;margin:13px 0 16px}
  .welcome-links a{min-width:0;min-height:44px;justify-content:center;padding:9px 5px;border:1px solid #e2e9f5;border-radius:11px;background:#f8faff}.welcome-links a span{display:none}.welcome-links img,.welcome-links svg{width:23px;height:23px}
  .welcome-rail .enter-button{min-height:50px;border-radius:13px;font-size:16px;box-shadow:0 8px 22px #cf142b30}.mobile-enter{display:none!important}
  .welcome-card{order:-1;width:100%;min-width:0;padding:15px;border-radius:22px;box-shadow:0 10px 34px #002b740d}
  .welcome-card-header{margin-bottom:13px;flex-wrap:nowrap}.welcome-card-header .welcome-brand img{width:36px;height:36px}.welcome-card-header h1{font-size:16px;line-height:1.2}.welcome-card-header nav{gap:4px}.welcome-card-header nav>a{display:none}.welcome-card-header .language{width:40px;height:40px}
  .gallery-screen{border-radius:15px;aspect-ratio:16/10}.gallery-dots{gap:6px;margin:9px 0 12px;padding:4px 0}.gallery-dots button{flex-basis:58px;width:58px;height:44px;border-radius:8px}.gallery-controls{margin-top:8px}
  .welcome-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 2px 7px;border:0}.welcome-meta>span{font-size:11px}.welcome-meta .welcome-creator{grid-column:1/-1;padding-top:8px;border-top:1px solid #e8edf6}.welcome-creator img{width:28px;height:28px}
  .welcome-description{position:relative;min-width:0;padding:10px 3px 0;font-size:14px;line-height:1.62;overflow-wrap:anywhere;max-height:185px;overflow:hidden;transition:max-height .25s ease}.welcome-description.mobile-expanded{max-height:none;padding-bottom:4px}.welcome-description:not(.mobile-expanded):after{content:'';position:absolute;left:0;right:0;bottom:0;height:74px;background:linear-gradient(transparent,#fff)}
  .mobile-description-toggle{order:-1;align-self:center;margin:-6px 0 4px;z-index:1;border:1px solid #d9e3f2;border-radius:999px;background:#fff;color:#173567;padding:10px 16px;font-weight:700;box-shadow:0 5px 16px #00235010}
  .welcome-reviews{order:2;width:100%;min-width:0;border-radius:22px;margin:0;box-shadow:0 10px 34px #002b740d}.welcome-review-slide{min-height:0}
  .welcome-footer{margin:0 16px;padding:22px 0 calc(24px + env(safe-area-inset-bottom));display:block;text-align:center;line-height:1.8}.welcome-footer span{display:block}
  #membership-modal{width:100vw;max-width:100vw;height:auto;max-height:92dvh;margin:auto 0 0;padding:54px 16px calc(22px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;border:0}
  #membership-modal[open]{animation:welcome-sheet-in .2s ease-out}#membership-modal .close{position:fixed;right:12px;top:auto;margin-top:-47px;width:42px;height:42px;border:1px solid #dce4f4;border-radius:50%;background:#fff;box-shadow:0 4px 14px #001f4b1c;z-index:10}
  .membership-heading{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin-bottom:16px}.membership-heading h2{font-size:23px}.membership-heading .academy-login{padding:10px 14px}
  .membership-options{gap:10px;margin:14px 0}.membership-options .membership-card{grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto auto;padding:15px;gap:4px 12px;text-align:left}.membership-card .bundle-art{grid-row:1/4;height:52px;align-self:start}.membership-card h3,.membership-card p,.membership-card>strong{grid-column:2;margin:0}.membership-card h3{font-size:15px}.membership-card p{font-size:12px;line-height:1.45}.membership-card>strong{font-size:15px;margin-top:5px}.offer-icon,.class-art svg{width:45px;height:45px}.membership-card .max-symbol{font-size:32px}.product-tooltip{position:fixed;left:16px;right:16px;bottom:18px;width:auto;transform:none}
}
@keyframes welcome-sheet-in{from{transform:translateY(28px);opacity:.7}to{transform:none;opacity:1}}
@media (max-width:380px){.skool-banner{height:112px}.welcome-rail-body{padding:15px}.welcome-card{padding:12px}.membership-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media (max-width:700px) and (prefers-reduced-motion:reduce){html{scroll-behavior:auto}#membership-modal[open]{animation:none}.welcome-description{transition:none}}
